将last -x reboot
最后两个条目显示为 的原因是still running
什么?此外,我很确定我没有在 16 年 12 月重新启动该服务器,尽管它可能与托管服务提供商有关。如果是这样,这会是预期的结果吗?
root@cthulhu-new ~ # last -x reboot
reboot system boot 4.13.0-0.bpo.1-a Sat Dec 16 06:26 still running
reboot system boot 4.13.0-0.bpo.1-a Thu Dec 7 07:56 still running
reboot system boot 4.13.0-0.bpo.1-a Wed Dec 6 11:10 - 07:55 (20:44)
wtmp begins Tue Dec 5 19:59:27 2017
Run Code Online (Sandbox Code Playgroud)
这是last -x shutdown
12 月 16 日没有条目的输出:
root@cthulhu-new ~ # last -x shutdown
shutdown system down 4.13.0-0.bpo.1-a Thu Dec 7 07:55 - 07:56 (00:00)
shutdown system down 4.13.0-0.bpo.1-a Wed Dec 6 11:10 - 11:10 (00:00)
wtmp begins Tue Dec 5 19:59:27 2017
Run Code Online (Sandbox Code Playgroud)
Ste*_*itt 10
是的,这将是预期的结果。last
不知道您的系统在 12 月 16 日关闭,大概是因为它不是有序关闭(断电或类似情况)。由于它显示 boots 的方式,它认为最后两个引导仍在运行。
下次系统关闭时,事情会在一定程度上自行解决;last
然后将使用新的关闭时间用于 12 月 7 日和 16 日的靴子。