Categories
Vultr

Check if Apache2 and MySQL Services are Running on Ubuntu

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

By Vannkorn

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

Leave a Reply

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