This site had been unstable for the last couple of weeks, due to my hosting company’s issues with servers. My Apache and MySql database have both been moved to a different server. Hopefully things will be stable from now on.
During the troubleshooting time, I used a few commands to find out the uptime of both server and MySql database. I thought these would be helpful to other people so here they are.
To find out the uptime of your Linux server, any one of the following commands will do:
To find out the uptime of your mysql demon, log into the server using mysql command line, then issue the following command:
I am sure there is a way to find out how long Apache has been running, but I just don’t know. Can anybody enlighten me? Thanks.