- 论坛徽章:
- 0
|
大家好!Aapach最近有点异常,Apache刚开机可以访问,但过一段时间后就访问不了了,查看了一下进程:
# ps ax | grep http
2763 ? Ss 0:00 /usr/sbin/httpd
2790 ? S 0:00 /usr/sbin/httpd
2791 ? S 0:00 /usr/sbin/httpd
2792 ? S 0:00 /usr/sbin/httpd
2793 ? S 0:00 /usr/sbin/httpd
2794 ? S 0:00 /usr/sbin/httpd
2795 ? S 0:00 /usr/sbin/httpd
2796 ? S 0:00 /usr/sbin/httpd
2797 ? S 0:00 /usr/sbin/httpd
然后重启服务:
# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
但还是访问不了,只有重启计算机了才可以,但过10来分钟左右又不行了。有时候重启计算机所也不行,到底哪里出了问题,先谢过。
(PS:
1 message 里只有apache启动成功的记录,没有其他记录了。
2 /var/log/httpd/error.log:
[Sun Sep 03 04:02:10 2006] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 03 04:02:10 2006] [notice] Digest: done
[Sun Sep 03 04:02:10 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun Sep 03 04:02:10 2006] [notice] LDAP: SSL support unavailable
[Sun Sep 03 04:02:10 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun Sep 03 04:02:10 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Tue Sep 05 17:09:00 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Sep 05 17:09:00 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 05 17:09:00 2006] [notice] Digest: done
[Tue Sep 05 17:09:00 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Sep 05 17:09:00 2006] [notice] LDAP: SSL support unavailable
[Tue Sep 05 17:09:01 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Sep 05 17:09:01 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Tue Sep 05 17:37:33 2006] [notice] caught SIGTERM, shutting down
[Tue Sep 05 17:37:34 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Sep 05 17:37:34 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 05 17:37:34 2006] [notice] Digest: done
[Tue Sep 05 17:37:34 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Sep 05 17:37:34 2006] [notice] LDAP: SSL support unavailable
[Tue Sep 05 17:37:34 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Sep 05 17:37:34 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
[Tue Sep 05 17:39:16 2006] [notice] caught SIGTERM, shutting down
[Tue Sep 05 17:43:54 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Sep 05 17:43:54 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 05 17:43:54 2006] [notice] Digest: done
[Tue Sep 05 17:43:54 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Sep 05 17:43:54 2006] [notice] LDAP: SSL support unavailable
[Tue Sep 05 17:43:55 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Sep 05 17:43:55 2006] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations
3 /var/log/httpd/access.log 里没有记录
4 /var/log/httpd/access.log.1:
127.0.0.1 - - [27/Aug/2006:17:53:32 +0800] "GET /bbs/attachments/usO46A==_QC9PQA45mGLf.gif HTTP/1.0" 404 312 "http://gz.ichat.net.cn:8216/Body?user=\xbf\xc6\xd1\xa7\xbc\xd2&pass=UbAJhwXbDGuqkKWQRXIdAcosjMvoXZDx&r=31872" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
127.0.0.1 - - [27/Aug/2006:18:21:05 +0800] "GET /bbs/attachments/27_4200_335_AH3irbbiAUCR.gif HTTP/1.0" 404 315 "http://www.60366.com/viewthread.php?tid=6122&extra=page%3D1" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 56flvplayer 1.0)"
127.0.0.1 - - [28/Aug/2006:09:32:52 +0800] "GET / HTTP/1.0" 403 5044 "http://tpx.3322.org/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
127.0.0.1 - - [29/Aug/2006:20:35:01 +0800] "GET / HTTP/1.0" 403 5044 "http://www.baidu.com/s?lm=0&si=&rn=10&ie=gb2312&ct=0&wd=%D0%A3%D4%B0%C2%DB%CC%B3&pn=40&cl=3" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; TencentTraveler )"
127.0.0.1 - - [29/Aug/2006:20:35:04 +0800] "GET /icons/apache_pb2.gif HTTP/1.0" 200 2414 "http://bbs.cnsccc.cn/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; TencentTraveler )"
127.0.0.1 - - [29/Aug/2006:20:35:04 +0800] "GET /icons/powered_by_rh.png HTTP/1.0" 200 1213 "http://bbs.cnsccc.cn/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; TencentTraveler )"
) |
|