为什么我的 Ubuntu 机器开始随机关闭?

为什么我的 Ubuntu 机器开始随机关闭?

我已经使用笔记本电脑作为家庭服务器大约 2 个月了。它运行着 6 个容器的 docker,我主要通过 ssh 或 portainer 访问它。大约一周前,出于某种原因,它似乎随机地开始自行关闭,有什么方法可以检查它为什么会这样做,有什么方法可以阻止它吗?

运行结果如下last -x | head | tac

runlevel (to lvl 5)   6.5.0-28-generic Fri May  3 23:03 - 23:11  (00:08)
moksh    pts/0        192.168.1.30     Fri May  3 23:04 - 23:07  (00:03)
moksh    pts/0        192.168.1.30     Fri May  3 23:07 - 23:11  (00:03)
moksh    pts/0        192.168.1.30     Fri May  3 23:11 - 23:11  (00:00)
shutdown system down  6.5.0-28-generic Fri May  3 23:11 - 23:12  (00:00)
reboot   system boot  6.5.0-28-generic Fri May  3 23:12   still running
runlevel (to lvl 5)   6.5.0-28-generic Fri May  3 23:12 - 14:14 (3+15:02)
reboot   system boot  6.5.0-28-generic Tue May  7 14:14   still running
runlevel (to lvl 5)   6.5.0-28-generic Tue May  7 14:14   still running
moksh    pts/0        192.168.1.30     Tue May  7 14:15    gone - no logout

使用结果sudo journalctl -b -l -e如下所示

May 07 12:01:17 server kernel: asus_wmi: Unknown key code 0x6d
May 07 12:01:20 server systemd[1]: run-docker-runtime\x2drunc-moby-eced9a483e8492ade037097b767f2d7bea42327e64440010f13d57bb973411e2-runc.LfRpWw.mount: Deactivated successfully.
May 07 12:01:25 server systemd[1]: run-docker-runtime\x2drunc-moby-eced9a483e8492ade037097b767f2d7bea42327e64440010f13d57bb973411e2-runc.04kppZ.mount: Deactivated successfully

^ 随后出现了几个 run-docker-runtime Deactivated 成功消息。

我在用:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

笔记本电脑详细信息:

ASUS ROG GL552VW-DH71
GPU GeForce GTX 960M 2GB VRAM
16GB DDR4
Intel i7 CPU

相关内容