deepblue 发表于 2012-4-30 16:22:52

军哥,安装的LNMP0。9版本,每天晚上PHP都会出现无法访问

一直没查出问题,每次出问题都是重新启动下就OK了,请问下会是什么原因 ?

licess 发表于 2012-4-30 17:34:29

没法说原因,看/home/wwwlogs/nginx_error.log的错误日志

deepblue 发表于 2012-5-2 09:41:03

原帖由 licess 于 2012-4-30 17:34 发表 https://bbs.vpser.net/images/common/back.gif
没法说原因,看/home/wwwlogs/nginx_error.log的错误日志
nginx_error.log 日志就只有2012/04/25 14:50:47 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 1741#0: still could not bind()
2012/04/25 14:54:25 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 1945#0: still could not bind()

licess 发表于 2012-5-2 10:32:20

这不算错误,这个只是nginx已经运行了,有运行了一次。

deepblue 发表于 2012-5-3 20:41:55

原帖由 licess 于 2012-5-2 10:32 发表 https://bbs.vpser.net/images/common/back.gif
这不算错误,这个只是nginx已经运行了,有运行了一次。
跟PHP有关的还有什么日志用来排查?

licess 发表于 2012-5-4 09:32:42

/usr/local/php/var/log/php-fpm.log

deepblue 发表于 2012-5-4 19:23:09

原帖由 licess 于 2012-5-4 09:32 发表 https://bbs.vpser.net/images/common/back.gif
/usr/local/php/var/log/php-fpm.log 我的PHP下面没有VAR目录,不过有 /usr/local/php/logs/php-fpm.log
整个日志文件在附件里,下面是日志文件的小部分内容:请帮我看下,谢谢
Apr 25 14:14:05.717416 fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:14:05.718060 fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:14:05.718305 fpm_init(), line 52: fpm is running, pid 32279
Apr 25 14:14:05.719054 fpm_children_make(), line 352: child 32280 (pool default) started
Apr 25 14:14:05.719718 fpm_children_make(), line 352: child 32281 (pool default) started
Apr 25 14:14:05.720433 fpm_children_make(), line 352: child 32282 (pool default) started
Apr 25 14:14:05.721106 fpm_children_make(), line 352: child 32283 (pool default) started
Apr 25 14:14:05.721789 fpm_children_make(), line 352: child 32284 (pool default) started
Apr 25 14:14:05.721905 fpm_event_loop(), line 107: libevent: entering main loop
Apr 25 14:20:00.421592 fpm_got_signal(), line 56: received SIGTERM
Apr 25 14:20:00.421660 fpm_pctl(), line 256: switching to 'terminating' state
Apr 25 14:20:00.421702 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32284 (pool default)
Apr 25 14:20:00.421729 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32283 (pool default)
Apr 25 14:20:00.421751 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32282 (pool default)
Apr 25 14:20:00.421773 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32281 (pool default)
Apr 25 14:20:00.421794 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32280 (pool default)
Apr 25 14:20:00.421810 fpm_pctl_kill_all(), line 181: 5 children are still alive
Apr 25 14:20:00.423728 fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:20:00.423834 fpm_children_bury(), line 215: child 32280 (pool default) exited on signal 15 SIGTERM after 354.704847 seconds from start
Apr 25 14:20:00.423871 fpm_children_bury(), line 215: child 32281 (pool default) exited on signal 15 SIGTERM after 354.704186 seconds from start
Apr 25 14:20:00.423899 fpm_children_bury(), line 215: child 32282 (pool default) exited on signal 15 SIGTERM after 354.703515 seconds from start
Apr 25 14:20:00.423924 fpm_children_bury(), line 215: child 32283 (pool default) exited on signal 15 SIGTERM after 354.702857 seconds from start
Apr 25 14:20:00.423950 fpm_children_bury(), line 215: child 32284 (pool default) exited on signal 15 SIGTERM after 354.702206 seconds from start
Apr 25 14:20:00.423967 fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 25 14:20:01.505911 fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:20:01.506511 fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:20:01.506776 fpm_init(), line 52: fpm is running, pid 11087
Apr 25 14:20:01.507582 fpm_children_make(), line 352: child 11088 (pool default) started
Apr 25 14:20:01.508304 fpm_children_make(), line 352: child 11089 (pool default) started
Apr 25 14:20:01.509046 fpm_children_make(), line 352: child 11090 (pool default) started
Apr 25 14:20:01.509740 fpm_children_make(), line 352: child 11091 (pool default) started
Apr 25 14:20:01.510486 fpm_children_make(), line 352: child 11092 (pool default) started
Apr 25 14:20:01.510585 fpm_event_loop(), line 107: libevent: entering main loop
Apr 25 14:38:01.803843 fpm_got_signal(), line 56: received SIGTERM
Apr 25 14:38:01.803915 fpm_pctl(), line 256: switching to 'terminating' state
Apr 25 14:38:01.803953 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11092 (pool default)
Apr 25 14:38:01.803978 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11091 (pool default)
Apr 25 14:38:01.803999 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11090 (pool default)
Apr 25 14:38:01.804020 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11089 (pool default)
Apr 25 14:38:01.804061 fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11088 (pool default)
Apr 25 14:38:01.804077 fpm_pctl_kill_all(), line 181: 5 children are still alive
Apr 25 14:38:01.805441 fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.805554 fpm_children_bury(), line 215: child 11089 (pool default) exited on signal 15 SIGTERM after 1080.297295 seconds from start
Apr 25 14:38:01.805623 fpm_children_bury(), line 215: child 11090 (pool default) exited on signal 15 SIGTERM after 1080.296624 seconds from start
Apr 25 14:38:01.805660 fpm_children_bury(), line 215: child 11091 (pool default) exited on signal 15 SIGTERM after 1080.295962 seconds from start
Apr 25 14:38:01.805691 fpm_children_bury(), line 215: child 11092 (pool default) exited on signal 15 SIGTERM after 1080.295249 seconds from start
Apr 25 14:38:01.805714 fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.806172 fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.806226 fpm_children_bury(), line 215: child 11088 (pool default) exited on signal 15 SIGTERM after 1080.298713 seconds from start
Apr 25 14:38:01.806245 fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 25 14:38:02.897534 fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:38:02.898207 fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:38:02.898462 fpm_init(), line 52: fpm is running, pid 32180

deepblue 发表于 2012-5-7 13:11:27

自己顶下

licess 发表于 2012-5-7 13:54:31

没错误信息

wixsky 发表于 2012-5-8 01:30:14

也许 PHP程序有什么问题
不知你所说的重启是 Nginx 还是服务器

deepblue 发表于 2012-5-8 10:32:05

原帖由 wixsky 于 2012-5-8 01:30 发表 https://bbs.vpser.net/images/common/back.gif
也许 PHP程序有什么问题
不知你所说的重启是 Nginx 还是服务器 都是PHP页面无法访问,HTML正常,只要重启 php-fpm 就可以了。
页: [1]
查看完整版本: 军哥,安装的LNMP0。9版本,每天晚上PHP都会出现无法访问