开机不能自动启动服务,须在开机后手动输入命令?

由 lightwiter 在 08-10-2003 11:56 发表:

开机不能自动启动服务,须在开机后手动输入命令?

最近经常出现这种情况,有时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

这样有问题吗?


是新手啦,没办法,又要害一害大家了,希望明天我也能帮别人回报linuxsir 这个大家庭。

只不过说老实话,这里的版主和兄弟们可真让我感动,和其它论坛相比某某好的那些话也就不说了。


由 lightwiter 在 08-10-2003 19:44 发表:

有没有哪位老大看一眼呀?

知道麻烦了大家,但是是真的很急呀.....


是新手啦,没办法,又要害一害大家了,希望明天我也能帮别人回报linuxsir 这个大家庭。

只不过说老实话,这里的版主和兄弟们可真让我感动,和其它论坛相比某某好的那些话也就不说了。


由 nobody_am 在 08-10-2003 20:39 发表:


anacron (一般可以不要)

cron (最好要)

apmd (不要)

atd (不要)

autofs (有自动挂载吗?无?--不要)

cups (打印?无?--不要)

httpd (web服务器? 无?--不要)

ipop3 (pop3服务器? 无?--不要)

iptables (安全信重要?否?--不要)

mysqld (用数据库?否?--不要)

network (上网?是?--要)

nfs (nfs共享出去?否?--不要)

saslauthd (不知道,不要)

sendmail (最好要,也可以不要)

sshd (ssh远程登录?否--不要)

syslog (系统日志--最好要)

vsftpd (ftp服务器?否?--不要)

xinetd (它下有一些服务?基本可以不要)

无xfs?难道不用X?

解决ping域名的问题,最好学会配制DNS。


解放思想,实事求是!!


由 lightwiter 在 08-10-2003 21:32 发表:


多谢,试先.


是新手啦,没办法,又要害一害大家了,希望明天我也能帮别人回报linuxsir 这个大家庭。

只不过说老实话,这里的版主和兄弟们可真让我感动,和其它论坛相比某某好的那些话也就不说了。


由 lightwiter 在 08-10-2003 22:18 发表:


一切正常啦,真是多谢

顺便问一下

445/tcp filtered microsoft-ds

587/tcp open submission

5800/tcp filtered vnc

5900/tcp filtered vnc

这几个端口开着是干什么用的?


是新手啦,没办法,又要害一害大家了,希望明天我也能帮别人回报linuxsir 这个大家庭。

只不过说老实话,这里的版主和兄弟们可真让我感动,和其它论坛相比某某好的那些话也就不说了。


由 nobody_am 在 08-11-2003 03:47 发表:


不知道,把不认识得服务端口关掉。


解放思想,实事求是!!


由 777 在 08-11-2003 17:15 发表:


用chkconfig查看修改


由 lightwiter 在 08-11-2003 19:18 发表:


> quote: > > * * * > > 最初由 777 发表
>
> 用chkconfig查看修改 > > * * *

kudzu 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:关闭 6:关闭

syslog 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭

netfs 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:关闭 6:关闭

network 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭

random 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:关闭 6:关闭

rawdevices 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:关闭 6:关闭

pcmcia 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:关闭 6:关闭

saslauthd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭

keytable 0:关闭 1:启用 2:启用 3:启用 4:启用 5:关闭 6:关闭

apmd 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:关闭 6:关闭

atd 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:关闭 6:关闭

gpm 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:关闭 6:关闭

autofs 0:关

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus