5
我运行nginx作为前端和php-fpm作为后端来访问php文件。我的/var/log/php-fpm/error.log文件中出现“文件太多”错误。我已经努力将软限制增加到65535,似乎无法解决问题。php-fpm太多打开的文件
/var/log/php-fpm/error.log
[17-Sep-2012 14:43:51] ERROR: failed to prepare the stderr pipe: Too many open files (24)
[17-Sep-2012 14:43:52] ERROR: failed to prepare the stderr pipe: Too many open files (24)
的ulimit -n
65535
/etc/php-fpm/www.conf
rlimit_files = 65535
感谢Gleen,我在Linux操作系统水平的提高打开FD限制和问题就解决了。 http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ – Ryan