vi /etc/sysctl.conf 添加 #if lots of TIME_WAIT , set tcp_timestamps = 1 , But be careful! net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.ip_local_port_range = 1024 65535 net.ipv4.netfilter.ip_conntrack_max = 6553600
注意tcp_timestamps一定要等于1,recycle和reuse才会生效,这点网上的很多文章都没有提到,张宴老师也是.....然后没啥了
<?php phpinfo(); ?>
保存成index.php,扔到/home/web/cgi-bin里