>백엔드 개발 >PHP 튜토리얼 >我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

WBOY
WBOY원래의
2016-06-06 20:28:311613검색

我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

重启下 php-fpm 就又能访问了 . 但一会就又出现页面空白问题 .

2015/06/30 11:25:22 [error] 29571#0: *8857 FastCGI sent in stderr: "PHP message: PHP Fatal error: Too many concurrent users, try again in 4 seconds. in Unknown on line 0" while reading response header from upstream, client: 183.57.152.32, server: a.apple.com, request: "GET /index.php/admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host:"a.apple.com"


我看到这个 php-fpm.conf 配置是这样的 ...
是不是少了什么东西 ...

1 [global]
2 pid = /usr/local/php/var/run/php-fpm.pid
3 error_log = /usr/local/php/var/log/php-fpm.log
4 log_level = notice
5
6 [www]
7 listen = /tmp/php-cgi.sock
8 listen.backlog = -1
9 listen.allowed_clients = 127.0.0.1
10 listen.owner = www
11 listen.group = www
12 listen.mode = 0666
13 user = www
14 group = www
15 pm = dynamic
16 pm.max_children = 10
17 pm.start_servers = 2
18 pm.min_spare_servers = 1
19 pm.max_spare_servers = 6
20 request_terminate_timeout = 100
21 request_slowlog_timeout = 0
22 slowlog = var/log/slow.log

回复内容:

我看到 如下的 nginx 日志 . 求解这个是什么问题 .... ?

重启下 php-fpm 就又能访问了 . 但一会就又出现页面空白问题 .

2015/06/30 11:25:22 [error] 29571#0: *8857 FastCGI sent in stderr: "PHP message: PHP Fatal error: Too many concurrent users, try again in 4 seconds. in Unknown on line 0" while reading response header from upstream, client: 183.57.152.32, server: a.apple.com, request: "GET /index.php/admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host:"a.apple.com"


我看到这个 php-fpm.conf 配置是这样的 ...
是不是少了什么东西 ...

1 [global]
2 pid = /usr/local/php/var/run/php-fpm.pid
3 error_log = /usr/local/php/var/log/php-fpm.log
4 log_level = notice
5
6 [www]
7 listen = /tmp/php-cgi.sock
8 listen.backlog = -1
9 listen.allowed_clients = 127.0.0.1
10 listen.owner = www
11 listen.group = www
12 listen.mode = 0666
13 user = www
14 group = www
15 pm = dynamic
16 pm.max_children = 10
17 pm.start_servers = 2
18 pm.min_spare_servers = 1
19 pm.max_spare_servers = 6
20 request_terminate_timeout = 100
21 request_slowlog_timeout = 0
22 slowlog = var/log/slow.log

concurrent user 太多并发量了

这个问题找到解决办法了吗?

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.