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
SHOW GLOBAL STATUS LIKE 'Uptime';
or
mysqladmin  version | grep -i uptime
or
mysql -e 'SHOW GLOBAL STATUS LIKE "Uptime"' | grep ''[[:digit:]]'' | awk '{ print $2 / 60 / 60 / 24 " days"}'

uptime.1447332437.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