LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1313|回复: 10

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

[复制链接]
发表于 2003-8-10 11:56:09 | 显示全部楼层 |阅读模式
最近经常出现这种情况,有时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
这样有问题吗?

 楼主| 发表于 2003-8-10 19:44:42 | 显示全部楼层

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

知道麻烦了大家,但是是真的很急呀.....
发表于 2003-8-10 20:39:11 | 显示全部楼层
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。
 楼主| 发表于 2003-8-10 21:32:22 | 显示全部楼层
多谢,试先.
 楼主| 发表于 2003-8-10 22:18:53 | 显示全部楼层
一切正常啦,真是多谢

顺便问一下
445/tcp filtered microsoft-ds
587/tcp open submission
5800/tcp filtered vnc
5900/tcp filtered vnc
这几个端口开着是干什么用的?
发表于 2003-8-11 03:47:11 | 显示全部楼层
不知道,把不认识得服务端口关掉。
发表于 2003-8-11 17:15:42 | 显示全部楼层
用chkconfig查看修改
 楼主| 发表于 2003-8-11 19:18:31 | 显示全部楼层
最初由 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:关闭        1:关闭        2:关闭        3:启用        4:启用        5:关闭        6:关闭
iptables               0:关闭        1:关闭        2:启用        3:启用        4:启用        5:启用        6:关闭
irda                   0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
isdn                   0:关闭        1:关闭        2:启用        3:启用        4:启用        5:关闭        6:关闭
sshd                   0:关闭        1:关闭        2:启用        3:启用        4:启用        5:启用        6:关闭
portmap                0:关闭        1:关闭        2:关闭        3:启用        4:启用        5:关闭        6:关闭
nfs                    0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
nfslock                0:关闭        1:关闭        2:关闭        3:启用        4:启用        5:关闭        6:关闭
sendmail               0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:启用        6:关闭
rhnsd                  0:关闭        1:关闭        2:关闭        3:启用        4:启用        5:关闭        6:关闭
crond                  0:关闭        1:关闭        2:启用        3:启用        4:启用        5:启用        6:关闭
anacron                0:关闭        1:关闭        2:启用        3:启用        4:启用        5:关闭        6:关闭
httpd                  0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:启用        6:关闭
aep1000                0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
bcm5820                0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
squid                  0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
tux                    0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
winbind                0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
smb                    0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
xfs                    0:关闭        1:关闭        2:启用        3:启用        4:启用        5:启用        6:关闭
xinetd                 0:关闭        1:关闭        2:关闭        3:启用        4:启用        5:启用        6:关闭
cups                   0:关闭        1:关闭        2:启用        3:启用        4:启用        5:关闭        6:关闭
named                  0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
ntpd                   0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
firstboot              0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
snmpd                  0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
snmptrapd              0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:关闭        6:关闭
vsftpd                 0:关闭        1:关闭        2:关闭        3:关闭        4:关闭        5:启用        6:关闭
mailscanner            0:关闭        1:关闭        2:启用        3:启用        4:启用        5:启用        6:关闭
基于 xinetd 的服务:
        chargen-udp:        关闭
        rsync:        关闭
        chargen:        关闭
        daytime-udp:        关闭
        daytime:        关闭
        echo-udp:        关闭
        echo:        关闭
        services:        关闭
        servers:        关闭
        time-udp:        关闭
        time:        关闭
        cups-lpd:        关闭
        sgi_fam:        关闭
        imap:        关闭
        imaps:        关闭
        ipop2:        关闭
        ipop3:        启用
        pop3s:        关闭

看不懂!!!!!!!!!
好像是有关运行级别的一样,但是这有什么作用呢
发表于 2003-8-11 20:01:29 | 显示全部楼层
看了一遍    有点晕~~~~
这是启动各个运行等级要启动或关闭的服务 的列表

man chkconfig

要知道某哥运行等级的服务就这样,看得舒服点:
example look at level 3:
chkconfig --list | grep "3n"
发表于 2003-8-11 20:04:49 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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