【问题标题】:How to find out the time apache was last restarted? [closed]如何找出上次重新启动apache的时间? [关闭]
【发布时间】:2013-03-31 21:30:49
【问题描述】:

我有一个安装了kloxo 控制面板的VPS。我正在使用CentOS 5.8 32-bit

我今天重新启动了 Apache,但忘记了时间。知道准确的时间非常重要。

我可以使用日志文件或 SSH 命令找到它吗?

【问题讨论】:

标签: apache centos kloxo


【解决方案1】:

您可以从 Apache 日志中找到这一点。您需要通过 ssh 登录您的 VPS 并检查您的 apache 实例的 error_log。

您应该会找到类似以下的内容:

[Tue Apr 09 11:43:23 2013] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations

这将准确地告诉你 apache 实例上次成功启动的时间

【讨论】:

    【解决方案2】:

    通过 SSH 登录到您的 VPS 并输入命令:

    grep resuming /var/log/httpd/error_log
    

    【讨论】:

    • 当然,你需要把你的apache配置使用的日志文件的实际路径放在
    猜你喜欢
    • 2013-05-21
    • 1970-01-01
    • 2012-10-03
    • 2018-05-09
    • 2020-09-14
    • 2010-09-20
    • 1970-01-01
    相关资源
    最近更新 更多