How to find out the time apache was last restarted? [closed]

南楼画角 提交于 2019-12-05 23:17:32

问题


I have a VPS with kloxo control panel installed. I am using CentOS 5.8 32-bit.

I restarted Apache today but forgot the time when I did. It is very important to know the exact time.

Can I find it out using the log files or SSH command?


回答1:


Log in into your VPS via SSH and type in the command:

grep resuming /var/log/httpd/error_log



回答2:


You can find out this from the Apache logs. You will need to log into your VPS via ssh and check the error_log for your apache instance.

You should find something like the following:

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

That will tell you exactly when you apache instance was last started successfully



来源:https://stackoverflow.com/questions/15902165/how-to-find-out-the-time-apache-was-last-restarted

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!