502 Bad Gateway php进程死亡,手动启动过几天又死
系统:CentOS6.2 64位环境:用这个安装的wget -c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz && tar zxvf lnmp1.0-full.tar.gz && cd lnmp1.0-full && ./centos.shPHP:5.2.17
我这当每次出现502 Bad Gateway时,需要ssh连接一下,然后执行/usr/local/php/sbin/php-fpm start就能马上用了。但是我这不可能出这问题就要去执行一下呀。
我看了。https://bbs.vpser.net/thread-1654-1-1.html 论坛里以前有人提问过的问题。
同时也按了他们的解决方法试了一下,然后我重启系统之后,刚开机访问探针php页面还是502 Bad Gateway,而执行一下那个/usr/local/php/sbin/php-fpm start就行了。
我把php-fpm.log也发上来。麻烦看一下。谢谢。打扰了。请见谅....
Jul 15 14:40:49.798426 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Jul 15 14:40:49.798797 fpm_event_init_main(), line 88: libevent: using epoll
Jul 15 14:40:49.798875 fpm_init(), line 52: fpm is running, pid 1537
Jul 15 14:40:49.799662 fpm_children_make(), line 352: child 1538 (pool default) started
Jul 15 14:40:49.800282 fpm_children_make(), line 352: child 1539 (pool default) started
Jul 15 14:40:49.800873 fpm_children_make(), line 352: child 1540 (pool default) started
Jul 15 14:40:49.801473 fpm_children_make(), line 352: child 1541 (pool default) started
Jul 15 14:40:49.804823 fpm_children_make(), line 352: child 1542 (pool default) started
Jul 15 14:40:49.804896 fpm_event_loop(), line 107: libevent: entering main loop
Jul 15 15:35:24.474383 fpm_got_signal(), line 48: received SIGCHLD
Jul 15 15:35:24.481790 fpm_children_bury(), line 215: child 1538 (pool default) exited on signal 15 SIGTERM after 3274.682131 seconds from start
Jul 15 15:35:24.482470 fpm_children_make(), line 352: child 2026 (pool default) started
Jul 15 15:35:24.482528 fpm_children_bury(), line 215: child 1539 (pool default) exited on signal 15 SIGTERM after 3274.682266 seconds from start
Jul 15 15:35:24.482995 fpm_children_make(), line 352: child 2027 (pool default) started
Jul 15 15:35:24.483035 fpm_children_bury(), line 215: child 1540 (pool default) exited on signal 15 SIGTERM after 3274.682183 seconds from start
Jul 15 15:35:24.483635 fpm_children_make(), line 352: child 2028 (pool default) started
Jul 15 15:35:24.483681 fpm_children_bury(), line 215: child 1541 (pool default) exited on signal 15 SIGTERM after 3274.682230 seconds from start
Jul 15 15:35:24.484177 fpm_children_make(), line 352: child 2029 (pool default) started
Jul 15 15:35:24.484288 fpm_children_bury(), line 215: child 1542 (pool default) exited on signal 15 SIGTERM after 3274.679800 seconds from start
Jul 15 15:35:24.484723 fpm_children_make(), line 352: child 2030 (pool default) started
Jul 15 15:35:24.484747 fpm_got_signal(), line 56: received SIGTERM
Jul 15 15:35:24.484837 fpm_pctl(), line 256: switching to 'terminating' state
Jul 15 15:35:24.484861 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2030 (pool default)
Jul 15 15:35:24.484870 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2029 (pool default)
Jul 15 15:35:24.484876 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2028 (pool default)
Jul 15 15:35:24.484882 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2027 (pool default)
Jul 15 15:35:24.484889 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2026 (pool default)
Jul 15 15:35:24.484894 fpm_pctl_kill_all(), line 181: 5 children are still alive
Jul 15 15:35:24.484906 fpm_got_signal(), line 48: received SIGCHLD
Jul 15 15:35:24.484914 fpm_got_signal(), line 48: received SIGCHLD
回复 1# 的帖子
Jul 15 17:27:44.714270 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535Jul 15 17:27:44.720394 fpm_event_init_main(), line 88: libevent: using epoll
Jul 15 17:27:44.720588 fpm_init(), line 52: fpm is running, pid 20756
Jul 15 17:27:44.722410 fpm_children_make(), line 352: child 20757 (pool default) started
Jul 15 17:27:44.723103 fpm_children_make(), line 352: child 20758 (pool default) started
Jul 15 17:27:44.723651 fpm_children_make(), line 352: child 20759 (pool default) started
Jul 15 17:27:44.724253 fpm_children_make(), line 352: child 20760 (pool default) started
Jul 15 17:27:44.724934 fpm_children_make(), line 352: child 20761 (pool default) started
Jul 15 17:27:44.725009 fpm_event_loop(), line 107: libevent: entering main loop
Jul 16 11:11:49.030635 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Jul 16 11:11:49.031093 fpm_event_init_main(), line 88: libevent: using epoll
Jul 16 11:11:49.031227 fpm_init(), line 52: fpm is running, pid 21648
Jul 16 11:11:49.032093 fpm_children_make(), line 352: child 21649 (pool default) started
Jul 16 11:11:49.032817 fpm_children_make(), line 352: child 21650 (pool default) started
Jul 16 11:11:49.033577 fpm_children_make(), line 352: child 21651 (pool default) started
Jul 16 11:11:49.034318 fpm_children_make(), line 352: child 21652 (pool default) started
Jul 16 11:11:49.035043 fpm_children_make(), line 352: child 21653 (pool default) started
Jul 16 11:11:49.035108 fpm_event_loop(), line 107: libevent: entering main loop
Jul 21 08:36:05.790283 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Jul 21 08:36:05.795816 fpm_event_init_main(), line 88: libevent: using epoll
Jul 21 08:36:05.796026 fpm_init(), line 52: fpm is running, pid 14312
Jul 21 08:36:05.796934 fpm_children_make(), line 352: child 14313 (pool default) started
Jul 21 08:36:05.797976 fpm_children_make(), line 352: child 14314 (pool default) started
Jul 21 08:36:05.799185 fpm_children_make(), line 352: child 14315 (pool default) started
Jul 21 08:36:05.800870 fpm_children_make(), line 352: child 14316 (pool default) started
Jul 21 08:36:05.802223 fpm_children_make(), line 352: child 14317 (pool default) started
Jul 21 08:36:05.802263 fpm_event_loop(), line 107: libevent: entering main loop
Jul 21 08:51:38.638985 fpm_got_signal(), line 56: received SIGTERM
Jul 21 08:51:38.639035 fpm_pctl(), line 256: switching to 'terminating' state
Jul 21 08:51:38.639060 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 14317 (pool default)
Jul 21 08:51:38.639108 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 14316 (pool default)
Jul 21 08:51:38.639126 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 14315 (pool default)
Jul 21 08:51:38.639138 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 14314 (pool default)
Jul 21 08:51:38.639150 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 14313 (pool default)
Jul 21 08:51:38.639160 fpm_pctl_kill_all(), line 181: 5 children are still alive
Jul 21 08:51:38.639173 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 08:51:38.639221 fpm_children_bury(), line 215: child 14314 (pool default) exited on signal 15 SIGTERM after 932.841285 seconds from start
Jul 21 08:51:38.639267 fpm_children_bury(), line 215: child 14315 (pool default) exited on signal 15 SIGTERM after 932.840116 seconds from start
Jul 21 08:51:38.639298 fpm_children_bury(), line 215: child 14316 (pool default) exited on signal 15 SIGTERM after 932.838464 seconds from start
Jul 21 08:51:38.639326 fpm_children_bury(), line 215: child 14317 (pool default) exited on signal 15 SIGTERM after 932.837123 seconds from start
Jul 21 08:51:38.639344 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 08:51:38.639358 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 08:51:38.639814 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 08:51:38.639843 fpm_children_bury(), line 215: child 14313 (pool default) exited on signal 15 SIGTERM after 932.842980 seconds from start
Jul 21 08:51:38.639851 fpm_pctl_exit(), line 81: exiting, bye-bye!
Jul 21 08:59:13.677994 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Jul 21 08:59:13.684474 fpm_event_init_main(), line 88: libevent: using epoll
Jul 21 08:59:13.684630 fpm_init(), line 52: fpm is running, pid 3183
Jul 21 08:59:13.685294 fpm_children_make(), line 352: child 3184 (pool default) started
Jul 21 08:59:13.685924 fpm_children_make(), line 352: child 3185 (pool default) started
Jul 21 08:59:13.686531 fpm_children_make(), line 352: child 3186 (pool default) started
Jul 21 08:59:13.687179 fpm_children_make(), line 352: child 3187 (pool default) started
Jul 21 08:59:13.687827 fpm_children_make(), line 352: child 3188 (pool default) started
Jul 21 08:59:13.687867 fpm_event_loop(), line 107: libevent: entering main loop
Jul 21 09:00:25.432746 fpm_got_signal(), line 56: received SIGTERM
Jul 21 09:00:25.432813 fpm_pctl(), line 256: switching to 'terminating' state
Jul 21 09:00:25.432841 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 3188 (pool default)
Jul 21 09:00:25.432859 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 3187 (pool default)
Jul 21 09:00:25.432870 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 3186 (pool default)
Jul 21 09:00:25.432880 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 3185 (pool default)
Jul 21 09:00:25.432891 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 3184 (pool default)
Jul 21 09:00:25.432901 fpm_pctl_kill_all(), line 181: 5 children are still alive
Jul 21 09:00:25.432915 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 09:00:25.432965 fpm_children_bury(), line 215: child 3184 (pool default) exited on signal 15 SIGTERM after 71.747712 seconds from start
Jul 21 09:00:25.433010 fpm_children_bury(), line 215: child 3186 (pool default) exited on signal 15 SIGTERM after 71.746499 seconds from start
Jul 21 09:00:25.433030 fpm_children_bury(), line 215: child 3188 (pool default) exited on signal 15 SIGTERM after 71.745224 seconds from start
Jul 21 09:00:25.433040 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 09:00:25.433992 fpm_got_signal(), line 48: received SIGCHLD
Jul 21 09:00:25.434034 fpm_children_bury(), line 215: child 3185 (pool default) exited on signal 15 SIGTERM after 71.748133 seconds from start
Jul 21 09:00:25.434058 fpm_children_bury(), line 215: child 3187 (pool default) exited on signal 15 SIGTERM after 71.746911 seconds from start
Jul 21 09:00:25.434066 fpm_pctl_exit(), line 81: exiting, bye-bye! 看日志有个程序运行时间很长导致php-fpm挂了
回复 3# 的帖子
军哥,你好,有没类似发现php挂了,就执行usr/local/php/sbin/php-fpm start一类的角本啥的吗? 置顶帖 502解决方法里早就说了
页:
[1]