User Tools

Site Tools


uptime

This is an old revision of the document!


Server uptime

w
uptime


Apache uptime


CentOS

service httpd fullstatus

Ubuntu

apache2ctl fullstatus

Sometimes the correct packages are not installed to run these commands
Alternative:
grep -i resuming /var/log/httpd/error.log
grep -i resuming /var/log/apache2/error.log


mysql uptime


You can use any of the following commands

mysqladmin  version | grep -i uptime
or
SHOW GLOBAL STATUS LIKE 'Uptime';

or

mysql -e 'SHOW GLOBAL STATUS LIKE "Uptime"' | grep ''[[:digit:]]'' | awk '{ print $2 / 60 / 60 / 24 " days"}'

uptime.1447332585.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki