找回密码
 注册
查看: 1760|回复: 12

为什么我必须反复重启httpd服务才可以登陆该web服务器?

[复制链接]
发表于 2005-10-9 17:03:50 | 显示全部楼层 |阅读模式
这几天我们实验室的web服务器出了问题,必须反复重启httpd服务才可以登陆,现在重启了,过了一会儿又不行了。请问这是怎么回事?怎么解决这个问题?谢谢!!我装的是RedHat9.0。
发表于 2005-10-9 18:30:35 | 显示全部楼层
登陆什么?有问题看日志啊
回复

使用道具 举报

 楼主| 发表于 2005-10-10 08:48:47 | 显示全部楼层
就是这样的,我们的web服务器同时也是我们实验室的邮件服务器。我们经常需要通过web方式从其它机器登陆这台机器收信发信。但经常出现无法登陆的现象,就是你在地址栏输入该web服务器的地址时,很久都没有反应。必须在服务器本机上重新启动httpd服务后,才可以通过的别的机器以web方式登陆该机器。请问这是什么原因?
回复

使用道具 举报

发表于 2005-10-10 09:54:24 | 显示全部楼层
你的服务器名到IP的解析可能有问题,因为太慢了用IP试试
回复

使用道具 举报

 楼主| 发表于 2005-10-10 16:47:03 | 显示全部楼层
我就是用IP也无法登陆,多次试验完全一样,这个与到IP的解析没有关系的。
回复

使用道具 举报

 楼主| 发表于 2005-10-11 11:25:05 | 显示全部楼层
Who can help me, please??
回复

使用道具 举报

发表于 2005-10-11 18:06:06 | 显示全部楼层
麻烦你看看 apache 的日志,好分析一点
回复

使用道具 举报

 楼主| 发表于 2005-10-12 17:22:44 | 显示全部楼层
Where is the log file of apache? I find a file "error_log" in the directory "/var/log/httpd". Is it this one? From this file, I got the following lines at the end of the file. Can you see what is wrong from them?


............
[Wed Oct 12 16:16:36 2005] [error] [client 202.127.203.168] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 16:16:40 2005] [error] [client 202.127.203.176] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 16:16:43 2005] [error] [client 202.127.203.176] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 16:16:47 2005] [error] [client 202.127.203.176] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 16:16:48 2005] [error] [client 202.127.203.176] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 16:17:07 2005] [error] [client 202.127.203.168] File does not exist: /usr/www/html/favicon.ico
[Wed Oct 12 17:07:35 2005] [warn] child process 28999 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29000 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29001 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29002 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29003 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29004 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29005 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29006 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:35 2005] [warn] child process 29062 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 28999 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29000 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29001 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29002 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29003 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29004 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29005 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29006 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:36 2005] [warn] child process 29062 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 28999 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29000 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29001 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29002 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29003 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29004 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29005 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29006 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:37 2005] [warn] child process 29062 still did not exit, sending a SIGTERM
[Wed Oct 12 17:07:42 2005] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 12 17:07:42 2005] [notice] Digest: done
[Wed Oct 12 17:07:43 2005] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Wed Oct 12 17:07:47 2005] [error] [client 66.249.64.36] File does not exist: /usr/www/html/robots.txt
[Wed Oct 12 17:12:47 2005] [error] [client 147.8.153.90] File does not exist: /home/zxdai/public_html/html, referer: http://www.google.com.sg/search?hl=en&q=%E5%A5%B4%E9%9A%B6+AND+%E5%B0%86%E5%86%9B&btnG=Search&meta=
[Wed Oct 12 17:12:51 2005] [error] [client 147.8.153.90] File does not exist: /home/zxdai/public_html/html, referer: http://www.google.com.sg/search?hl=en&q=%E5%A5%B4%E9%9A%B6+AND+%E5%B0%86%E5%86%9B&btnG=Search&meta=
回复

使用道具 举报

发表于 2005-10-12 17:46:31 | 显示全部楼层
麻烦你在浏览时,再同时看日志。

不要敷衍我,我不是你上司。
回复

使用道具 举报

 楼主| 发表于 2005-10-12 21:29:34 | 显示全部楼层
To speak the truth, I do not know how to read the log file and how to get useful information from it. I am not perfunctory on purpose. I am very sorry.
回复

使用道具 举报

 楼主| 发表于 2005-10-13 08:42:07 | 显示全部楼层
从日志文件里可以看到最多的两条错误信息是像下面这样的:

1:
[Thu Oct 13 08:15:11 2005] [error] [client 202.160.180.154] File does not exist: /usr/www/html/~fanw
总是读某个文件,但是不存在。查了一下域名,客户机是inktomisearch.com,是不是某个搜索网站。


[Thu Oct 13 08:28:45 2005] [warn] child process 32019 still did not exit, sending a SIGTERM
总是说某个子进程还没有推出,经常出现一大堆这样的话。

我不知道是不是由于上述两个原因引起,没有出现别的奇怪的现象。麻烦gugong以及其它有经验的帮忙看看,万分感谢。
回复

使用道具 举报

发表于 2005-10-13 21:26:18 | 显示全部楼层
日志中有没有类似“[error] server reached MaxClients setting, consider raising the MaxClients setting”的错误,如果有的话那也许是访问量太大了,超过限制了,请适当增加 MaxClients 的值
回复

使用道具 举报

 楼主| 发表于 2005-10-14 08:57:49 | 显示全部楼层
[quote:01ae9dfb55="NightHK3"]日志中有没有类似“[error] server reached MaxClients setting, consider raising the MaxClients setting”的错误,如果有的话那也许是访问量太大了,超过限制了,请适当增加 MaxClients 的值[/quote]

非常谢谢你的回复。但是日志中没有这样的语句啊。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-13 17:47 , Processed in 0.052847 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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