网站频繁出现502 Bad Gateway, 求大侠指点
最近网站频繁出现 502 Bad Gateway, 求大侠指点,nginx_error.log:
2012/08/15 10:35:02 24421#0: *10318629 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 123.125.71.97, server: xxx.com, request: "GET /fwhz/article/&place=14&mj=2&jg=3&zj=0&page=15 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.xxx.com" 响应不过来了,多开点php-cgi 回复 2# xinglu1983
我现在子进程设置为200, 还是报错,
出现502 的时候 php-fpm.log 里生成下面日志
Aug 15 12:57:01.598270 fpm_pctl_exit(), line 81: exiting, bye-bye!
Aug 15 12:57:02.615251 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Aug 15 12:57:02.615746 fpm_event_init_main(), line 88: libevent: using epoll
Aug 15 12:57:02.615862 fpm_init(), line 52: fpm is running, pid 3763
Aug 15 12:57:02.616348 fpm_children_make(), line 352: child 3764 (pool default) started
... ...
Aug 15 12:57:02.699710 fpm_children_make(), line 352: child 3963 (pool default) started
Aug 15 12:57:02.700091 fpm_children_make(), line 352: child 3964 (pool default) started
Aug 15 12:57:02.700542 fpm_children_make(), line 352: child 3965 (pool default) started
Aug 15 12:57:02.700580 fpm_event_loop(), line 107: libevent: entering main loop
求大侠指点 timeout设置大一点 换用php-fpm 这个就稳定了 很少出现502
页:
[1]