Linux系统最近重启时间、错误日志

   查看Linux系统最近重启命令

 

[root@localhost ~]# last reboot

reboot   system boot  2.6.18-164.el5   Wed Dec 22 20:19          (12:58)

reboot   system boot  2.6.18-164.el5   Wed Nov 10 10:41         (42+09:17)

reboot   system boot  2.6.18-164.el5   Tue Oct 26 19:49         (14+14:42)

reboot   system boot  2.6.18-164.el5   Fri Oct 22 00:22         (4+19:21)

reboot   system boot  2.6.18-164.el5   Thu Oct 21 03:47         (5+15:56)

reboot   system boot  2.6.18-164.el5   Wed Oct 20 23:43         (5+20:00)

reboot   system boot  2.6.18-164.el5   Sat Sep 18 20:31         (37+23:12)

2010-12-22 2019 重启了系统

可以看到正常命令重启显示为down,而电源强制重启为crash

 

查看最近用户登录情况

[root@localhost ~]# last

oracle   pts/1        10.1.1.1         Thu Dec 23 08:59   still logged in

reboot   system boot  2.6.18-164.el5   Wed Dec 22 20:19          (12:59)

root     pts/1        10.1.1.2         Sun Dec 12 13:07 - 13:59  (00:52)

 

查看操作系统的历史命令:

[root@localhost ~]#history |more

  382  top

  383  df -lh

  384  top

  385  service iptables stop

  386  last

  387  last reboot

  388  last

  389  history

  390  history |more

 

在执行top命令时都可以查看系统状态,然后就出现了reboot重启系统的状况。在service iptables stop 命令之前没有查下到reboot的命令,可见是系统重启。

查看系统的日子信息:

[root@localhost ~]#cat /var/log/messages |more

Dec 20 02:46:56 localhost xinetd[5248]: EXIT: telnet status=1 pid=12350 duration

=30(sec)

Dec 22 19:59:12 localhost shutdown[32014]: shutting down for system halt

Dec 22 19:59:12 localhost pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0

 Not Found

Dec 22 19:59:13 localhost smartd[5472]: smartd received signal 15: Terminated

Dec 22 19:59:13 localhost smartd[5472]: smartd is exiting (exit status 0)

Dec 22 19:59:14 localhost avahi-daemon[5410]: Got SIGTERM, quitting.

Dec 22 19:59:14 localhost avahi-daemon[5410]: Leaving mDNS multicast group on in

terface usb0.IPv6 with address fe80::21:5eff:fe9c:b6d7.

Dec 22 19:59:14 localhost avahi-daemon[5410]: Leaving mDNS multicast group on in

terface eth0.IPv6 with address fe80::221:5eff:fe98:b6f4.

Dec 22 19:59:14 localhost avahi-daemon[5410]: Leaving mDNS multicast group on in

terface eth0.IPv4 with address 10.132.0.162.

Dec 22 20:21:08 localhost syslogd 1.4.1: restart.

Dec 22 20:21:08 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.

Dec 22 20:21:08 localhost kernel: Linux version 2.6.18-164.el5 (mockbuild@x86-00

3.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP T

ue Aug 18 15:51:48 EDT 2009

 

后经确认,这是在机房人为重启服务器。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12778571/viewspace-682440/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12778571/viewspace-682440/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值