当前位置: > CentOS > CentOS故障 >

centos7 异常关机了,怎么查看系统的异常日志?

时间:2016-01-07 20:06来源:linux.it.net.cn 作者:IT
centos7 异常关机了,怎么查看系统的异常日志?
crash中也没有dump的文件.
这是messages日志:

Feb 26 11:14:03 moon systemd-logind: Removed session 11.
Feb 26 11:14:56 moon systemd: Created slice user-0.slice.
Feb 26 11:14:56 moon systemd: Starting Session 12 of user root.
Feb 26 11:14:56 moon systemd: Started Session 12 of user root.
Feb 26 11:14:56 moon systemd-logind: New session 12 of user root.
Feb 26 11:14:57 moon systemd-logind: Removed session 12.
Feb 26 11:15:12 moon systemd: Created slice user-0.slice.
Feb 26 11:15:12 moon systemd: Starting Session 13 of user root.
Feb 26 11:15:12 moon systemd: Started Session 13 of user root.
Feb 26 11:15:12 moon systemd-logind: New session 13 of user root.
Feb 26 11:15:20 moon systemd-logind: Removed session 13.
Feb 26 11:20:01 moon systemd: Created slice user-0.slice.
Feb 26 11:20:01 moon systemd: Starting Session 14 of user root.
Feb 26 11:20:01 moon systemd: Started Session 14 of user root.
Feb 26 11:30:01 moon systemd: Created slice user-0.slice.
Feb 26 11:30:01 moon systemd: Starting Session 15 of user root.
Feb 26 11:30:01 moon systemd: Started Session 15 of user root.
Feb 26 11:36:05 moon systemd: Stopping user-0.slice.
Feb 26 11:36:05 moon systemd: Removed slice user-0.slice.
Feb 26 11:36:05 moon systemd: Stopping user-1002.slice.
Feb 26 11:36:05 moon systemd: Removed slice user-1002.slice.
Feb 26 11:36:05 moon systemd: Stopping Dump dmesg to /var/log/dmesg...
Feb 26 11:36:05 moon systemd: Stopped Dump dmesg to /var/log/dmesg.
Feb 26 11:36:05 moon systemd: Stopping Multi-User System.
Feb 26 11:36:05 moon systemd: Stopped target Multi-User System.
Feb 26 11:36:05 moon systemd: Stopping LSB: Start the ipr dump daemon...
Feb 26 11:36:05 moon systemd: Stopping NTP client/server...
Feb 26 11:36:05 moon systemd: Stopping Command Scheduler...
Feb 26 11:36:05 moon systemd: Stopping OpenSSH server daemon...
Feb 26 11:36:05 moon rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="1600" x-info="http://www.rsyslog.com"] exiting on signal 15.



CentOS的应该和Redhat的是一样的
/var/log/message中有些日志可以看
如果是kernel crash了 在/var/crash/下 有kernel crash的时候的日志环境 当然 前提是你安装时默认运行kernel crash后有dump文件

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容