Vannkorn

Full Stack Web 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 $300 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

2 thoughts on “Check if Apache2 and MySQL Services are Running on Ubuntu

  1. 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.

  2. 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.

Leave a Reply

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