This tutorial is a short read on how to restart, stop, start and show the status of Apache on Linux. The following commands apply to most Red Hat Linux (RHEL) distributions. These Linux distributions include Fedora, Red Hat (obviously), and Amazon Linux 2.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
## Apache Start Command ## sudo systemctl start httpd.service ## Apache Stop Command ## sudo systemctl stop httpd.service ## Apache Restart Command ## sudo systemctl restart httpd.service ## Apache Status Command ## sudo systemctl status httpd.service |