开发者

httpd restart time

开发者 https://www.devze.com 2023-02-17 17:06 出处:网络
I want to know when the httpd server 开发者_如何学Cwas restarted, how long it has been up etc. Thanks

I want to know when the httpd server 开发者_如何学Cwas restarted, how long it has been up etc.

Thanks Jean


The only way to get this information is from the httpd.log files, it should show times that httpd was started / stopped assuming that your log files are not being rotated or archived.


The answer by user66751 is not totally right.

Assuming centos: service httpd status.

root@server2 [~]# service httpd status | grep uptime
   Server uptime: 6 hours 43 minutes 51 seconds
root@server2 [~]#

root@server2 [~]# service httpd status | grep Restart
   Restart Time: Friday, 15-Aug-2014 16:27:04 EDT
root@server2 [~]#
0

精彩评论

暂无评论...
验证码 换一张
取 消