We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
To start the Apache service, execute the following command:
sudo systemctl start apache2
Copy To stop the Apache service, execute the following command:
sudo systemctl stop apache2
Copy Whenever you make changes to the Apache configuration, you need to restart the server processes. To restart the Apache service, run:
sudo systemctl restart apache2
Copy Older (EOLed) versions of Ubuntu or Debian are using init.d scripts to start, stop and restart the Apache daemon:
sudo service apache2 start
sudo service apache2 stop sudo service apache2 restart CopyCopyCopy Start, Stop and Restart Apache on RHEL/CentOS Systemd is the system and service manager for RHEL/CentOS 7 and 8 .
Start the Apache service:
sudo systemctl start httpd
Copy Stop the Apache service:
sudo systemctl stop httpd
Copy Restart the Apache service:
sudo systemctl restart httpd
Copy If you have CentOS 6 or earlier system that uses SysV, use the following commands to start, stop and restart the Apache daemon:
sudo service httpd start
sudo service httpd stop sudo service httpd restart CopyCopyCopy