如何查看 Ubuntu 关机前出现的错误

如何查看 Ubuntu 关机前出现的错误

每次我关闭 Ubuntu 14.04 PC 时,都会出现黑屏,显示一些警告,仅持续 1 秒。读取它非常快。这与操作系统或硬件无关,也许与我最近安装的服务器有关。那么如何查看它?请指教,谢谢。

运行此命令后我得到了此信息:

grep -iE 'mysql|server' /var/log/syslog /var/log/kern.log

Dec 27 00:01:02  dnsmasq[1363]: setting upstream servers from DBus
/var/log/syslog:Dec 27 00:01:20  dnsmasq[1677]: no servers found in /etc/resolv.conf, will retry
/var/log/syslog:Dec 27 00:01:22 NetworkManager[911]: <info>   nameserver '192.168.1.1'
/var/log/syslog:Dec 27 00:01:23  dnsmasq[1363]: setting upstream servers from DBus
/var/log/syslog:Dec 27 00:01:23 dnsmasq[1363]: using nameserver 192.168.1.1#53
/var/log/syslog:Dec 27 00:01:32  ntpdate[8178]: no server suitable for synchronization found
/var/log/syslog:Dec 27 00:02:51dnsmasq[1677]: using nameserver 127.0.1.1#53
/var/log/syslog:Dec 27 00:02:51  dnsmasq[1363]: setting upstream servers from DBus
/var/log/syslog:Dec 27 07:08:02 5 ntpdate[825]: no servers can be used, exiting
/var/log/syslog:Dec 27 07:08:02  bluetoothd[830]: Starting SDP server
/var/log/syslog:Dec 27 07:08:02  avahi-daemon[827]: Server startup complete. Host name is .local. Local service cookie is 2471667593.
/var/log/syslog:Dec 27 07:08:12 dnsmasq[1671]: no servers found in /etc/resolv.conf, will retry
/var/log/syslog:Dec 27 07:09:30 NetworkManager[905]: <info>   nameserver '192.168.1.1'
/var/log/syslog:Dec 27 07:09:31 NetworkManager[905]: <warn> dnsmasq not available on the bus, can't update servers.
/var/log/syslog:Dec 27 07:09:31  dnsmasq[2068]: warning: no upstream servers configured
/var/log/syslog:Dec 27 07:09:32 5 dnsmasq[2068]: setting upstream servers from DBus
/var/log/syslog:Dec 27 07:09:32 dnsmasq[2068]: using nameserver 192.168.1.1#53
/var/log/syslog:Dec 27 07:09:39  ntpdate[2186]: adjust time server 91.189.94.4 offset -0.337961 sec
/var/log/syslog:Dec 27 07:11:26 -1545 dnsmasq[1671]: using nameserver 127.0.1.1#53
/var/log/syslog:Dec 27 07:36:29 ntpdate[826]: no servers can be used, exiting
/var/log/syslog:Dec 27 07:36:29  bluetoothd[809]: Starting SDP server
/var/log/syslog:Dec 27 07:36:29 avahi-daemon[843]: Server startup complete. Host name is .local. Local service cookie is 3166850630.
/var/log/syslog:Dec 27 07:36:34 NetworkManager[907]: <info>   nameserver '192.168.1.1'
/var/log/syslog:Dec 27 07:36:35 NetworkManager[907]: <warn> dnsmasq not available on the bus, can't update servers.
/var/log/syslog:Dec 27 07:36:36  dnsmasq[1348]: warning: no upstream servers configured
/var/log/syslog:Dec 27 07:36:38 dnsmasq[1348]: setting upstream servers from DBus
/var/log/syslog:Dec 27 07:36:38  dnsmasq[1348]: using nameserver 192.168.1.1#53
/var/log/syslog:Dec 27 07:36:41  dnsmasq[1970]: using nameserver 127.0.1.1#53
/var/log/syslog:Dec 27 07:36:46  ntpdate[1648]: adjust time server 91.189.94.4 offset -0.336311 sec

顺便说一句,实际的警告/错误并不像上面的那么大。可能只有 2/3 行。

相关内容