VPS侦探论坛

 找回密码
 注册
查看: 4880|回复: 1

lnmp安装后提示502错误

[复制链接]
发表于 2012-10-17 22:46:49 | 显示全部楼层 |阅读模式

以下是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!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-10-19 10:56:18 | 显示全部楼层


3761.193922 seconds

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

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

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

request_terminate_timeout = 180   限制时间180秒。

重启PHP。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 12:44 , Processed in 0.025274 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表