Chinaunix

标题: oracle linux 5.4启动过ssh服务后就不能启动了 [打印本页]

作者: 7343696    时间: 2010-05-26 08:11
标题: oracle linux 5.4启动过ssh服务后就不能启动了
下是日志记录
[root@ha2 ~]# tail -19 /var/log/messages
May 26 15:04:30 ha2 kernel: ACPI: Mapper loaded
May 26 15:04:30 ha2 kernel: dell-wmi: No known WMI GUID found
May 26 15:04:30 ha2 kernel: md: Autodetecting RAID arrays.
May 26 15:04:30 ha2 kernel: md: autorun ...
May 26 15:04:30 ha2 kernel: md: ... autorun DONE.
May 26 15:04:30 ha2 kernel: device-mapper: multipath: version 1.0.5 loaded
May 26 15:04:30 ha2 kernel: loop: loaded (max 8 devices)
May 26 15:04:30 ha2 kernel: EXT3 FS on sda3, internal journal
May 26 15:04:30 ha2 kernel: kjournald starting.  Commit interval 5 seconds
May 26 15:04:30 ha2 kernel: EXT3 FS on sda1, internal journal
May 26 15:04:30 ha2 kernel: EXT3-fs: mounted filesystem with ordered data mode.
May 26 15:04:30 ha2 kernel: Adding 1020116k swap on /dev/sda2.  Priority:-1 extents:1 across:1020116k
May 26 15:04:30 ha2 kernel: eth0: link up
May 26 15:04:30 ha2 kernel: eth1: link up
May 26 15:04:30 ha2 kernel: eth2: link up
May 26 15:04:31 ha2 automount[1928]: lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
May 26 15:04:32 ha2 kernel: NET: Registered protocol family 10
May 26 15:04:32 ha2 kernel: lo: Disabled Privacy Extensions
May 26 15:04:33 ha2 kernel: IPv6 over IPv4 tunneling driver

下面是图片
作者: chenyx    时间: 2010-05-26 09:20
进入单用户模式检查下系统日志
作者: 紫暝    时间: 2010-05-26 15:38
进单用户后chkconfig sshd off然后重启,看看sshd的配置文件
作者: 7343696    时间: 2010-05-26 16:04
谢谢大家
问题已经解决了。

[root@ha2 ~]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
while :
do
      rdate -s 192.168.11.21
      sleep 10s
done
改成下面就已经解决了。
[root@ha2 ~]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
#while :
#do
#       rdate -s 192.168.11.21
#       sleep 10s
#done
作者: tsadmin    时间: 2010-05-27 09:36
这个是做集群用的时间同步,你没有集群时间同步可以不用,




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2