查询linux自动重新启动原因
查询linux自动重新启动原因
- 检查一下系统的状态,CPU使用率,内存使用情况等。首先排除一下是资源耗尽造成的故障
- 可以先检查系统日志,最有可能造成系统重启的就是OOM(内存溢出)或者通俗理解为内存不足。 2.1. Linux 服务器因 CPU 温度过高自动重启 http://www.s2.cn/news.php?id=33 2.2. Linux服务器不明原因重启了,怎么查找原因 http://bbs.51cto.com/archiver/tid-861470.html 2.3. 重启的信息可以通过 dmesg来看 系统的log一般都是记录在/var/log/messages里 命令: cat /var/log/messages | grep reboot
- linux启动日志: /var/log/boot.log
实践如下:
[root@xiyou-vedio_encode_bj_sjs_10_71_11_22 ~]# last reboot reboot system boot 2.6.32-696.6.3.e Mon Aug 14 10:37 - 10:41 (00:03) reboot system boot 2.6.32-696.6.3.e Mon Aug 14 09:57 - 10:41 (00:43) reboot system boot 2.6.32-696.6.3.e Mon Aug 14 08:58 - 10:41 (01:43) reboot system boot 2.6.32-696.6.3.e Mon Aug 14 08:52 - 10:41 (01:48) reboot system boot 2.6.32-696.6.3.e Mon Aug 14 08:36 - 10:41 (02:04) reboot system boot 2.6.32-696.6.3.e Mon Aug 14 08:07 - 10:41 (02:34) [root@xiyou-vedio_encode_bj_sjs_10_71_11_22 ~]# cal August 2017 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
linux启动日志:/var/log/boot.log
mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use -o nolock to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified
下一篇:
Linux安装Nginx(超详细步骤)