Vannkorn

Full Stack WordPress Developer

Close

Check if Apache2 and MySQL Services are Running on Ubuntu

I'd wrote this post when I started exploring Ubuntu server.

Ads: Register now via this link to receive $100 credit from Vultr

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

Leave a Reply

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