Home>Article>Operation and Maintenance> How to restart apache in ubuntu
How to restart apache on ubuntu?
Restarting the apache service in Linux is very different from that in Windows. Let’s introduce the commonly used commands.
The Linux system is Ubuntu
1. Start Apache 2 Server / Start apache service
/etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start
2. Restart Apache 2 Server / Restart apache service
/etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart
3. Stop Apache 2 Server / Stop apache service
/etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
For more Apache related knowledge, please visit theApache usage tutorialcolumn!
The above is the detailed content of How to restart apache in ubuntu. For more information, please follow other related articles on the PHP Chinese website!