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 uptimeor
mysql -e 'SHOW GLOBAL STATUS LIKE "Uptime"' | grep ''[[:digit:]]'' | awk '{ print $2 / 60 / 60 / 24}'
uptime.1447332397.txt.gz · Last modified: 2024/05/23 07:26 (external edit)