【问题标题】:I want to know if my server was shutdown and time that is shutting down in我想知道我的服务器是否已关闭以及关闭的时间
【发布时间】:2014-04-27 14:28:32
【问题描述】:

我有一个带有 ubuntu 服务器的服务器 hp 我想知道我的服务器是否关闭以及关闭的时间 有东西要知道我服务器的日志

【问题讨论】:

    标签: ubuntu-server


    【解决方案1】:

    您可以尝试使用last reboot 命令来获取有关最近重新启动以及它们之间的正常运行时间的一些基本信息。

    # last reboot
    reboot   system boot  2.6.32-431.3.1.e Fri Mar 14 07:02 - 01:51 (8+18:49)   
    reboot   system boot  2.6.32-431.3.1.e Sun Feb 16 02:15 - 06:59 (26+03:44)  
    reboot   system boot  2.6.32-431.3.1.e Sun Jan 26 16:21 - 06:59 (46+13:38)  
    reboot   system boot  2.6.32-358.11.1. Sun Oct 13 18:53 - 16:18 (104+22:25) 
    reboot   system boot  2.6.32-358.11.1. Sun Oct  6 10:10 - 18:50 (7+08:40)   
    reboot   system boot  2.6.32-358.11.1. Sat Jun 29 09:28 - 10:06 (99+00:38)  
    reboot   system boot  2.6.32-358.11.1. Sat Jun 29 09:06 - 09:25  (00:19)    
    reboot   system boot  2.6.32-358.6.2.e Sat Jun 29 08:46 - 09:01  (00:15)    
    

    【讨论】:

      猜你喜欢
      • 2015-01-21
      • 2021-04-09
      • 2014-11-22
      • 2011-10-21
      • 2012-05-20
      • 2012-03-07
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      相关资源
      最近更新 更多