fpm用的php.ini下 (/etc/php5/fpm/php.ini),很重要,不改會有安全漏洞。
cgi.fix_pathinfo=0
##去掉防syn flood攻擊(高並發下會主動堵塞apache請求導致ab測試下apr_socket_recv: Connection reset by peer (104)) #參考: http://xmarker.blog.163.com/blog/static/226484057201462263815783/vi /etc/sysctl.confnet.ipv4.tcp_syncookie=0看ulimit數ulimit -Snulimit加到30000 如何修改自行百度,不同linux發行版似乎不一樣#nginx .conf下修改
worker_processes 12; worker_rlimit_nofile 100000; events { use epoll; worker_connections 65535; }
fastcgi_pass 127.0.0.1:9000;
#