To check if Apache2 service is running, simply run the following command:
sudo service apache2 status
To check if MySQL service is running, simply run the following command:
sudo service mysql status
For CentOS or Fedora:
To restart the service:
$ sudo systemctl restart httpd
To check the service status:
$sudo systemctl status httpd
Next time I read a blog, I hope that it does not disappoint me as much as this one. I mean, I know it was my choice to read, however I genuinely believed you’d have something interesting to say. All I hear is a bunch of moaning about something you can fix if you weren’t too busy seeking attention.
Hi Barton,
Sorry that you found this note disturbed. Honestly, this one is actually a note that I wrote long time ago, probably when I started learning Ubuntu, and I need a place to write common commands so that I can get to it quicker than googling.