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 20:19 重啟了系統
可以看到正常命令重啟顯示為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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何在 Linux 系統查詢機器最近重啟時間Linux
- 檢查Linux系統日誌error和mysql錯誤日誌的指令碼薦LinuxErrorMySql指令碼
- MySQL 8.0.18 錯誤日誌時間慢了8個小時MySql
- win10系統怎麼檢視系統錯誤日誌_win10如何檢視錯誤日誌Win10
- Oracle歸檔日誌所在目錄時間不對&&Oracle叢集日誌時間顯示錯誤Oracle
- Ubuntu下啟動、停止、重啟MySQL,檢視錯誤日誌命令大全UbuntuMySql
- 華納雲:linux系統中如何查詢oracle錯誤日誌LinuxOracle
- ORACLE監控系統錯誤日誌過程Oracle
- windows作業系統重啟時自動啟用備庫日誌應用Windows作業系統
- 開啟PHP的錯誤log日誌PHP
- mysql 日誌之錯誤日誌MySql
- 排查錯誤日誌
- linux系統重啟網路delaying initialization錯誤的解決方法Linux
- Mysql5.7錯誤日誌時間不對的解決辦法MySql
- Linux 時間錯誤的修正Linux
- linux系統 重啟碟符錯亂問題Linux
- Linux系統級日誌系統Linux
- mysql5.7日誌時間與系統時間不一致MySql
- Apche日誌系列(2):錯誤日誌(轉)
- Mabatis配置錯誤日誌BAT
- net 日誌分析錯誤
- 日誌查詢錯誤
- 錯誤日誌檢視
- SQL Server 錯誤日誌SQLServer
- Linux日誌系統(一)Linux
- mysql之 日誌體系(錯誤日誌、查詢日誌、二進位制日誌、事務日誌、中繼日誌)MySql中繼
- 資料緊急修復之啟用錯誤日誌
- Linux作業系統啟動時自動啟用oracle standby備庫日誌應用Linux作業系統Oracle
- LINUX檢視系統日誌Linux
- MySQL 狂寫錯誤日誌MySql
- jdon框架日誌資訊錯誤框架
- linux系統 重啟磁碟機代號錯亂問題Linux
- Linux下如何檢視系統啟動時間和執行時間Linux
- Linux 系統日誌的組成Linux
- SAP 錯誤日誌的調查
- node錯誤處理與日誌
- 上一個日誌的錯誤
- Sqlserver:代理錯誤日誌,知多少?SQLServer