2013年6月5日

nginx php 优化

摘要: 一、nginx优化 use epoll (那是肯定的) worker_rlimit_nofile 65535 (增加nginx打开文件描述符数) fastcgi_connect_timeout 300s;(这三条能有效的避免504错误) fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; fastcgi_pass unix:/tmp/php.socket (fast-cgi转发使用unix socket而不是用端口) 使用php-fpm而不是swawn-cgi二、linux内核优化 1、 ulimit -n 65535 (打... 阅读全文

posted @ 2013-06-05 11:30 xiaorao 阅读(287) 评论(0) 推荐(0) 编辑

导航