|
|
最近经常出现这种情况,有时httpd服务莫名其妙自动停掉了,现在最主要的症状是重启机器后服务不会自动重新启动,需要手动输入命令才能启动,我ntsysv里面已经勾选上了呀.
我勾选的服务有:
anacron
apmd
atd
autofs
cups
httpd
ipop3
iptables
mysqld
network
nfs
saslauthd
sendmail
sshd
syslog
vsftpd
xinetd
请问有什么可以不要启动或是没有启动的吗?
httpd error_log内容如下:
[Sun Aug 10 01:37:14 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 01:37:14 2003] [notice] Digest: done
[Sun Aug 10 01:37:14 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "www.3000why.com"
Configuration Failed!
[Sun Aug 10 09:00:52 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "www.3000why.com"
Configuration Failed!
[Sun Aug 10 09:01:27 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "www.3000why.com"
Configuration Failed!
[Sun Aug 10 09:04:35 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "linuxservice"
Configuration Failed!
[Sun Aug 10 09:07:10 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "www.3000why.com"
Configuration Failed!
[Sun Aug 10 09:10:45 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 09:10:45 2003] [notice] Digest: done
[Sun Aug 10 09:10:45 2003] [warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Aug 10 09:10:46 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 10:39:31 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 10 10:46:19 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "linuxserver"
Configuration Failed!
[Sun Aug 10 10:46:37 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "linuxserver"
Configuration Failed!
[Sun Aug 10 10:47:15 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 10:47:15 2003] [notice] Digest: done
[Sun Aug 10 10:47:16 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 10:51:30 2003] [warn] child process 2201 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2202 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2203 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2204 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2205 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2206 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2207 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [warn] child process 2208 still did not exit, sending a SIGTERM
[Sun Aug 10 10:51:30 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 10 10:53:39 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "linuxserver"
Configuration Failed!
[Sun Aug 10 10:54:03 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 10:54:03 2003] [notice] Digest: done
[Sun Aug 10 10:54:04 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 11:20:39 2003] [warn] child process 2163 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2164 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2165 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2166 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2167 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2168 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2169 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [warn] child process 2170 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:39 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 10 11:20:45 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 11:20:45 2003] [notice] Digest: done
[Sun Aug 10 11:20:46 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 11:20:59 2003] [warn] child process 2454 still did not exit, sending a SIGTERM
[Sun Aug 10 11:20:59 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 10 11:24:08 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 11:24:09 2003] [notice] Digest: done
[Sun Aug 10 11:24:10 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 11:25:58 2003] [warn] child process 2156 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2157 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2158 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2159 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2160 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2161 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2162 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [warn] child process 2163 still did not exit, sending a SIGTERM
[Sun Aug 10 11:25:58 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 10 11:29:08 2003] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 10 11:29:08 2003] [notice] Digest: done
[Sun Aug 10 11:29:09 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Sun Aug 10 11:33:15 2003] [error] [client 202.103.219.17] File does not exist: /var/www/html/default.ida
最开始我的主机名是linuxserver,因为sendmail启动很慢,httpd服务怎么也启不动,于是参照有关帖子用hostname将主机名改为 www.3000why.com ,于是可以启动服务,但是重启后主机又变回原来的 linuxserver,于是我又将 /etc/sysconfig/network 里面的主机名改为 www.3000why.com 现在启动后好像是没有错误,但是是服务仍然需要手动启动,所以百思不得其解只量发贴求各位老大了?
还有一点就是在我的主机里面总是ping不到自己
ping www.3000why.com
unknow hostname.
所以就在 /etc/hosts里面手动加了
127.0.0.1 www.3000why.com
202.103.57.181 www.3000why.com
同时把host.conf
改成了
order hosts,bind
这样有问题吗?
|
|