Replication slave servers by default do not write to their own binary log any statements that are received from the replication master. To cause these statements to be logged, start the slave with the –log-slave-updates option.
作者归档:鸡鸡哥的聪明伶俐的儿子
shopex问题汇总,原创
处理过的shopex问题汇总:
shopex是个没有售后的产品,因为没有售后,使用的人确很多,问题出的也比较多,总结一下
2013.03.31
问题1:
继续阅读
安装编译gd时出错,排错一例
如果在编译的时候出现错误:gd_png.c:15:53: error: png.h: No such file or directory,解决如下:
# vi gd_png.c
# 找到行: #include “png.h” /* includes zlib.h and setjmp.h */
修改为: #include “/usr/local/libpng/include/png.h” /* includes zlib.h and setjmp.h */
编译make时,继续出错,zlib.h的,修改/usr/loca/libpng/include/png.h,搜索定位找到zlib.h,给出全路径,然后保存退出,继续gd的make,ok了
RTNETLINK answers: no such process
双线双ip,碰到的问题,RTNETLINK answers: no such process,电信能通,但是网通不通,网上找的解决办法,如下:
1.当前路由表是否齐全
cat /etc/iproute2/rt_tables
2.相应ip配置是否正确
ip ro add default via 192.168.0.1 dev eth0
注意:当前eth0 一定要有192.168.0.0/24网段的ip
3.当前网卡物理连接是否正常
ethtool eth0
异常处理:
1。清空iptables
2。重启机器
php的的时间函数1
php的日期,时间函数
date()
time()
getdate()
mktime()
checkdate()
strftime()
libxml2-2.6.23编译,make时错误
Gentoo上编译libxml2-2.6.23上出错,解决办法如下,gcc太新的问题
:
/usr/include/bits/fcntl2.h:51: 错误: 调用‘__open_missing_mode’,声明有错误属性:open with O_CREAT in second argument needs 3 arguments
网上查了一下,说是gcc-4.3对语法检查严格的结果,找到出错的那一句,在我编译的程序里是这句
int fd = open(fn.c_str(), O_WRONLY | O_CREAT | O_TRUNC);
将之改为
int fd = open(fn.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0777);
就OK了
mktemp命令,很多写shell时很有用的命令
mktemp 命令 使用详解
功能说明:建立暂存文件。
语 法:mktemp [-qu][文件名参数] Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]
补充说明:mktemp可建立一个暂存文件,供shell script使用。
继续阅读
鸡鸡哥的nginx优化参数一backlog=8192
nginx服务器报错:
“connect() to unix:/dev/shm/fcgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream”
解决:
修改
1、cat /proc/sys/net/core/somaxconn查看somaxconn的值,默认是128,
echo 8192 > /proc/sys/net/core/somaxconn,放到/etc/rc.local中
2、修改nginx配置文件,添加如下
继续阅读
PHP_SELF变量!
假如命令行的地址是:http://www.baidu.com/index.php
那么:
$_SERVER[‘HTTP_HOST’]==’www.baidu.com’
$_SERVER[‘PHP_SELF’]==’/index.php’
明白了吧,一个是主机地址,一个是脚本文件的绝对路径
什么叫经典
原创:nginx的tcp_nopush
官方:
tcp_nopush
Syntax: tcp_nopush on | off
Default: off
Context: http
server
location
Reference: tcp_nopush
继续阅读