首页 » 互联网资讯 » 正文

lnmp安装后提示502错误

以下是php-fpm.log的日志文件,请帮忙看下
Oct 09 17:08:46.594218 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Oct 09 17:08:46.599752 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Oct 09 17:08:46.601557 [NOTICE] fpm_init(), line 52: fpm is running, pid 2602
Oct 09 17:08:46.614160 [NOTICE] fpm_children_make(), line 352: child 2603 (pool default) started
Oct 09 17:08:46.652646 [NOTICE] fpm_children_make(), line 352: child 2604 (pool default) started
Oct 09 17:08:46.664728 [NOTICE] fpm_children_make(), line 352: child 2605 (pool default) started
Oct 09 17:08:46.671627 [NOTICE] fpm_children_make(), line 352: child 2606 (pool default) started
Oct 09 17:08:46.677543 [NOTICE] fpm_children_make(), line 352: child 2607 (pool default) started
Oct 09 17:08:46.677644 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Oct 17 15:50:16.779233 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Oct 17 15:50:16.804092 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Oct 17 15:50:16.804795 [NOTICE] fpm_init(), line 52: fpm is running, pid 2286
Oct 17 15:50:16.816779 [NOTICE] fpm_children_make(), line 352: child 2287 (pool default) started
Oct 17 15:50:16.877202 [NOTICE] fpm_children_make(), line 352: child 2288 (pool default) started
Oct 17 15:50:16.895102 [NOTICE] fpm_children_make(), line 352: child 2291 (pool default) started
Oct 17 15:50:16.900741 [NOTICE] fpm_children_make(), line 352: child 2294 (pool default) started
Oct 17 15:50:16.906029 [NOTICE] fpm_children_make(), line 352: child 2295 (pool default) started
Oct 17 15:50:16.906089 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Oct 17 16:52:58.013838 [NOTICE] fpm_got_signal(), line 56: received SIGTERM
Oct 17 16:52:58.047925 [NOTICE] fpm_pctl(), line 256: switching to ‘terminating’ state
Oct 17 16:52:58.077870 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2295 (pool default)
Oct 17 16:52:58.078467 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2294 (pool default)
Oct 17 16:52:58.078489 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2291 (pool default)
Oct 17 16:52:58.078798 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2288 (pool default)
Oct 17 16:52:58.078832 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 2287 (pool default)
Oct 17 16:52:58.078844 [NOTICE] fpm_pctl_kill_all(), line 181: 5 children are still alive
Oct 17 16:52:58.081135 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 17 16:52:58.085156 [WARNING] fpm_children_bury(), line 215: child 2295 (pool default) exited on signal 15 SIGTERM after 3761.179147 seconds from start
Oct 17 16:52:58.088116 [WARNING] fpm_children_bury(), line 215: child 2294 (pool default) exited on signal 15 SIGTERM after 3761.187394 seconds from start
Oct 17 16:52:58.088739 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 17 16:52:58.088948 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 17 16:52:58.088968 [WARNING] fpm_children_bury(), line 215: child 2291 (pool default) exited on signal 15 SIGTERM after 3761.193922 seconds from start
Oct 17 16:52:58.090013 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 17 16:52:58.090066 [WARNING] fpm_children_bury(), line 215: child 2288 (pool default) exited on signal 15 SIGTERM after 3761.212970 seconds from start
Oct 17 16:52:58.093036 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Oct 17 16:52:58.093086 [WARNING] fpm_children_bury(), line 215: child 2287 (pool default) exited on signal 15 SIGTERM after 3761.276657 seconds from start
Oct 17 16:52:58.093100 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!


这提示,执行时间过长了。    一般因为程序问题或服务器性能慢引起。

你应该加个 PHP执行时间限制。

如果是 PHP5.3 的 在 php-fpm.conf 后面加    (5.2 有点不同)

request_terminate_timeout = 180   限制时间180秒。

重启PHP。

西雅图vps

发表评论