操作系统:ubuntu 11.10

报错日志:/var/www/syslog

1、Sep 12 06:32:24 dx107 kernel: [15516623.522543] php-fpm[4895] general protection ip:7f54884e8133 sp:7ffff4a363d0 error:0 in ld-2.13.so[7f54884d900
0+21000]
Sep 12 06:32:25 dx107 kernel: [15516624.522703] php-fpm[4897] general protection ip:7f54884e8133 sp:7ffff4a363d0 error:0 in ld-2.13.so[7f54884d900
0+21000]
 

解决:由于重新编译php版本,没有重启进程导致,重新启动即可。

 

2、Sep 12 08:23:58 dx104 kernel: [871762.216002] TCP: Possible SYN flooding on port 80. Sending cookies.
Sep 12 08:23:58 dx104 kernel: [871762.225145] TCP: Possible SYN flooding on port 80. Sending cookies.
Sep 12 08:23:58 dx104 kernel: [871762.333283] TCP: Possible SYN flooding on port 80. Sending cookies.
Sep 12 08:23:58 dx104 kernel: [871762.370610] TCP: Possible SYN flooding on port 80. Sending cookies.
Sep 12 08:23:58 dx104 kernel: [871762.375706] TCP: Possible SYN flooding on port 80. Sending cookies.

解决:

sysctl -w net.ipv4.tcp_syncookies=1
And then add the following line to the /etc/sysctl.conf file to make make it persist across reboots:

You may optionally want to increase the size of the SYN backlog queue as well, from a default of 1024, to 2048, using the following command:

sysctl -w net.ipv4.tcp_max_syn_backlog=2048
And you add this to /etc/sysctl.conf:

net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 2048

 

参考资料:

http://www.chengyongxu.com/blog/possible-syn-flooding-on-port-80-sending-cookies-%E8%A7%A3%E5%86%B3/