2013年12月27日

摘要: 这两天一直在搞windows下nginx+fastcgi的file_get_contents请求。我想,很多同学都遇到当file_get_contents请求外网的http/https的php文件时毫无压力,比如echo file_get_contents(‘http://www.baidu.com’),它会显示百度的页面。但当你请求localhost/127.0.0.1本地网络的php服务时却一直是timeout,无论你将请求时间和脚本运行时间多长都无法返回数据,如file_get_contents(‘http://localhost/phpinfo.php’)。然而当你尝试请求html这样 阅读全文
posted @ 2013-12-27 09:53 jounyl 阅读(697) 评论(0) 推荐(0) 编辑

2013年5月23日

摘要: 1 --help print this message 2 3 --prefix=PATH set installation prefix 4 --sbin-path=PATH set nginx binary pathname 5 --conf-path=PATH set nginx.conf pathname 6 --error-log-path=PATH set ... 阅读全文
posted @ 2013-05-23 14:19 jounyl 阅读(374) 评论(0) 推荐(0) 编辑

2013年5月17日

摘要: MySQL主从同步设置和同步错误处理注意:1、两台服务器数据库版本应一致,如果不一致,从服务器的版本要高于主服务器的版本。2、MySQL进行实时数据同步,本质上是将mysql动作同步到Slave服务器,而不是对实质的数据进行同步。所以同步开始前,两端的数据要保持一致。Master服务器:192.168.0.1Slave服务器:192.168.0.2=== Master停止运行时,Mysql同步配置===一、主服务器设置:1、修改/etc/my.cnf在[mysqld]区段内加入参数server-id=1log-binsql-bin-update-same2、为Slave服务器创建连接账户,用于 阅读全文
posted @ 2013-05-17 11:33 jounyl 阅读(1758) 评论(0) 推荐(0) 编辑

导航