zhixiao476 发表于 2012-10-17 22:46:49

lnmp安装后提示502错误

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

id886 发表于 2012-10-19 10:56:18

3761.193922 seconds

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

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

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

request_terminate_timeout = 180   限制时间180秒。

重启PHP。
页: [1]
查看完整版本: lnmp安装后提示502错误