Command
sudo systemctl stop apache2Explanation
Stops the Apache HTTP server service.
Examples
Stop Apache service (Systemd)
sudo systemctl stop apache2Stop Apache service (SysV)
sudo service apache2 stopsudo systemctl stop apache2Stops the Apache HTTP server service.
Stop Apache service (Systemd)
sudo systemctl stop apache2Stop Apache service (SysV)
sudo service apache2 stop