封装类如下:$host,'port'=>5672,'username'=>$username,'password'=>$password,'vhost'=>'/') */ public function __construct($configs = array(), $exchange...
分类:
Web程序 时间:
2014-07-22 00:33:35
阅读次数:
384
目标:本地某端口根目录映射到htdoc的一个位置方法:1.修改D:\xampp\apache\conf 下的httpd文件,给里面的virtual host增加监听端口## Listen: Allows you to bind Apache to specific IP addresses and/...
分类:
其他好文 时间:
2014-07-22 00:32:35
阅读次数:
203
php程序用file_get_contents("http://www.***.com"),一直以来好好的,突然间就不能链接远程网址了,在shell下可以ping通远程网址,可是用php的file_get_contents()或者php的curl()函数就不能访问了,而是莫名把远程网址解析成本地12...
分类:
Web程序 时间:
2014-07-22 00:17:36
阅读次数:
233
前提: cygwin 里通过 mysql-python模块 连接 windows版本的mysql 通过 socket不能连接 , 改为tcp 如下连接 ?conn?=?MySQLdb.connect(host=‘localhost‘,port=3306,user=‘xxx‘,passwd=‘xxx‘,db=‘xxx‘,charset=‘...
分类:
数据库 时间:
2014-07-22 00:05:36
阅读次数:
271
varmysql=require(‘mysql‘);varclient=mysql.createConnection({host:‘112.124.54.74‘,port:3306,user:‘yin‘,password:‘691331‘,database:‘hu‘});client.connect(function(error,results){if(error){console.log(‘ConnectionError:‘+error.message);return;}console.log(‘Conne..
分类:
数据库 时间:
2014-07-21 19:48:22
阅读次数:
263
key:service_state[service]Stateofservice.0-running,1-paused,2-startpending,3-pausepending,4-continuepending,5-stoppending,6-stopped,7-unknown,255-nosuchservice
MySQL:unknown variable 'master-host=masterIP' [ERROR] Aborting...
分类:
数据库 时间:
2014-07-21 15:15:06
阅读次数:
221
题目:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target ....
分类:
编程语言 时间:
2014-07-21 14:37:05
阅读次数:
266
现在nova可以通过命令创建一个server group,在server group中的vm可以指定一些policy。
这些policy包括affinity和anti-affinity。affinity表示尽量把vm都安排到一个host上面,anti-ffinity表示尽量把vm安排到不同的host上面。
创建server-group的命令如下:
nova server-group-crea...
分类:
其他好文 时间:
2014-07-21 13:43:36
阅读次数:
214
一、ping它是用来检查网络是否通畅或者网络连接速度的命令。作为一个生活在网络上的管理员或者黑客来说,ping命令是第一个必须掌握的DOS命令,它所利用的原理是这样的:网络上的机器都有唯一确定的IP地址,我们给目标IP地址发送一个数据包,对方就要返回一个同样大小的数据包,..
分类:
其他好文 时间:
2014-07-21 12:25:35
阅读次数:
213