歡迎您光臨本站 註冊首頁

Nginx 的502錯誤怎麼解決?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

Nginx 的502錯誤怎麼解決?

這是php-fpm.log中的日誌記錄:
fpm_got_signal(), line 48: received SIGCHLD
fpm_children_bury(), line 215: child 11877 (pool default) exited on signal 15 SIGTERM after 238.081583 seconds from start
fpm_children_make(), line 352: child 12421 (pool default) started
55 fpm_stdio_prepare_pipes(), line 197: pipe() failed: Too many open files (24)
fpm_request_check_timed_out(), line 158: child 11879, script '/founder/wwwroot/bbs/home.php' (pool default) execution timed
out (5.066057 sec), terminating
fpm_request_check_timed_out(), line 158: child 11878, script '/founder/wwwroot/bbs/forum.php' (pool default) execution timed
out (5.118926 sec), terminating
fpm_got_signal(), line 48: received SIGCHLD
fpm_children_bury(), line 215: child 11878 (pool default) exited on signal 15 SIGTERM after 237.287131 seconds from start
fpm_children_make(), line 352: child 12422 (pool default) started
fpm_stdio_prepare_pipes(), line 197: pipe() failed: Too many open files (24)
fpm_got_signal(), line 48: received SIGCHLD
fpm_children_bury(), line 215: child 11879 (pool default) exited on signal 15 SIGTERM after 237.157199 seconds from start
fpm_children_make(), line 352: child 12423 (pool default) started
fpm_stdio_prepare_pipes(), line 197: pipe() failed: Too many open files (24)
fpm_request_check_timed_out(), line 158: child 11880, script '/founder/wwwroot/bbs/home.php' (pool default) execution timed
out (5.085873 sec), terminating

其中nginx的配置文件:
        fastcgi_connect_timeout 1000;
        fastcgi_send_timeout 1000;
        fastcgi_read_timeout 1000;
php-fpm.conf:
        <value name="max_children">600</value>
        <value name="request_terminate_timeout">5s</value>
《解決方案》

加大 php

[火星人 ] Nginx 的502錯誤怎麼解決?已經有826次圍觀

http://coctec.com/docs/service/show-post-13705.html