Linux Example | Check Apache Server is Running or not in Ubuntu

This linux example will show us to check the status of apache server in Ubuntu.

Ubuntu 18.04, 16.04, and Debian 9.x

sudo systemctl status apache2

Ubuntu 14.10 or older Debian

sudo service apache2 status