VPS侦探论坛

 找回密码
 注册
查看: 8701|回复: 10

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

[复制链接]
发表于 2012-4-30 16:22:52 | 显示全部楼层 |阅读模式

一直没查出问题,每次出问题都是重新启动下就OK了,请问下会是什么原因 ?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-30 17:34:29 | 显示全部楼层


没法说原因,看/home/wwwlogs/nginx_error.log的错误日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-5-2 09:41:03 | 显示全部楼层

原帖由 licess 于 2012-4-30 17:34 发表
没法说原因,看/home/wwwlogs/nginx_error.log的错误日志

nginx_error.log 日志就只有2012/04/25 14:50:47 [emerg] 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 [emerg] 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 [emerg] 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 [emerg] 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 [emerg] 1741#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:50:47 [emerg] 1741#0: still could not bind()
2012/04/25 14:54:25 [emerg] 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 [emerg] 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 [emerg] 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 [emerg] 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 [emerg] 1945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/25 14:54:25 [emerg] 1945#0: still could not bind()
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-5-2 10:32:20 | 显示全部楼层



这不算错误,这个只是nginx已经运行了,有运行了一次。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-5-3 20:41:55 | 显示全部楼层

原帖由 licess 于 2012-5-2 10:32 发表
这不算错误,这个只是nginx已经运行了,有运行了一次。

跟PHP有关的还有什么日志用来排查?

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-5-4 09:32:42 | 显示全部楼层

/usr/local/php/var/log/php-fpm.log
 楼主| 发表于 2012-5-4 19:23:09 | 显示全部楼层

原帖由 licess 于 2012-5-4 09:32 发表
/usr/local/php/var/log/php-fpm.log
我的PHP下面没有VAR目录,不过有 /usr/local/php/logs/php-fpm.log
整个日志文件在附件里,下面是日志文件的小部分内容:请帮我看下,谢谢
Apr 25 14:14:05.717416 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:14:05.718060 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:14:05.718305 [NOTICE] fpm_init(), line 52: fpm is running, pid 32279
Apr 25 14:14:05.719054 [NOTICE] fpm_children_make(), line 352: child 32280 (pool default) started
Apr 25 14:14:05.719718 [NOTICE] fpm_children_make(), line 352: child 32281 (pool default) started
Apr 25 14:14:05.720433 [NOTICE] fpm_children_make(), line 352: child 32282 (pool default) started
Apr 25 14:14:05.721106 [NOTICE] fpm_children_make(), line 352: child 32283 (pool default) started
Apr 25 14:14:05.721789 [NOTICE] fpm_children_make(), line 352: child 32284 (pool default) started
Apr 25 14:14:05.721905 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Apr 25 14:20:00.421592 [NOTICE] fpm_got_signal(), line 56: received SIGTERM
Apr 25 14:20:00.421660 [NOTICE] fpm_pctl(), line 256: switching to 'terminating' state
Apr 25 14:20:00.421702 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32284 (pool default)
Apr 25 14:20:00.421729 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32283 (pool default)
Apr 25 14:20:00.421751 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32282 (pool default)
Apr 25 14:20:00.421773 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32281 (pool default)
Apr 25 14:20:00.421794 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 32280 (pool default)
Apr 25 14:20:00.421810 [NOTICE] fpm_pctl_kill_all(), line 181: 5 children are still alive
Apr 25 14:20:00.423728 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:20:00.423834 [WARNING] 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 [WARNING] 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 [WARNING] 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 [WARNING] 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 [WARNING] 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 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 25 14:20:01.505911 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:20:01.506511 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:20:01.506776 [NOTICE] fpm_init(), line 52: fpm is running, pid 11087
Apr 25 14:20:01.507582 [NOTICE] fpm_children_make(), line 352: child 11088 (pool default) started
Apr 25 14:20:01.508304 [NOTICE] fpm_children_make(), line 352: child 11089 (pool default) started
Apr 25 14:20:01.509046 [NOTICE] fpm_children_make(), line 352: child 11090 (pool default) started
Apr 25 14:20:01.509740 [NOTICE] fpm_children_make(), line 352: child 11091 (pool default) started
Apr 25 14:20:01.510486 [NOTICE] fpm_children_make(), line 352: child 11092 (pool default) started
Apr 25 14:20:01.510585 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
Apr 25 14:38:01.803843 [NOTICE] fpm_got_signal(), line 56: received SIGTERM
Apr 25 14:38:01.803915 [NOTICE] fpm_pctl(), line 256: switching to 'terminating' state
Apr 25 14:38:01.803953 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11092 (pool default)
Apr 25 14:38:01.803978 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11091 (pool default)
Apr 25 14:38:01.803999 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11090 (pool default)
Apr 25 14:38:01.804020 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11089 (pool default)
Apr 25 14:38:01.804061 [NOTICE] fpm_pctl_kill_all(), line 172: sending signal 15 SIGTERM to child 11088 (pool default)
Apr 25 14:38:01.804077 [NOTICE] fpm_pctl_kill_all(), line 181: 5 children are still alive
Apr 25 14:38:01.805441 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.805554 [WARNING] 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 [WARNING] 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 [WARNING] 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 [WARNING] 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 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.806172 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 25 14:38:01.806226 [WARNING] 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 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 25 14:38:02.897534 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024
Apr 25 14:38:02.898207 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Apr 25 14:38:02.898462 [NOTICE] fpm_init(), line 52: fpm is running, pid 32180
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-5-7 13:11:27 | 显示全部楼层

自己顶下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-5-7 13:54:31 | 显示全部楼层

没错误信息

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-5-8 01:30:14 | 显示全部楼层



也许 PHP程序有什么问题
不知你所说的重启是 Nginx 还是服务器
 楼主| 发表于 2012-5-8 10:32:05 | 显示全部楼层

原帖由 wixsky 于 2012-5-8 01:30 发表
也许 PHP程序有什么问题
不知你所说的重启是 Nginx 还是服务器
都是PHP页面无法访问,HTML正常,只要重启 php-fpm 就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 11:04 , Processed in 0.028912 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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