Check if Apache2 and MySQL Services are Running on Ubuntu

On  

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

And

To check the service status: $sudo systemctl status httpd

About Author:

I am a WordPress lover. I make my living using WordPress.

Leave A Comment

Your email address will not be published. Required fields are marked *