How Do I Start and Stop Apache in Linux?
Contents How Do I Start and Stop Apache Server in Linux? Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache Restart Apache 2 Web Server, Enter...
Contents
How do I start and stop Apache server in Linux?
Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache
- Restart Apache 2 web server, enter: # /etc/init.d/apache2 restart. $ sudo /etc/init.d/apache2 restart. …
- To stop Apache 2 web server, enter: # /etc/init.d/apache2 stop. …
- To start Apache 2 web server, enter: # /etc/init.d/apache2 start.
20 февр. 2021 г.
Must Read
How do I stop and start httpd on Linux?
You can also stop httpd using /sbin/service httpd stop . The restart option is a shorthand way of stopping and then starting the Apache HTTP Server. Apache will display a message on the console or in the ErrorLog if it encounters an error while starting.