Restart Apache commands under Linux

  
 

Basic operation method: This article assumes that your apahce installation directory is /wp-content/local/apache2, these methods are suitable for any situation

apahce startup command: recommended /wp-content/local/apache2/Bin/apachectl start apaceh start

apache stop command /wp-content/local/apache2/bin/apachectl stop stop

apache restart command: /wp-content/local/apache2/bin /apachectl restart Restart

To restart the Apache server without interrupting the current connection, you should run:

/wp-content/local/sbin/apachectl graceful

if If apache is installed as a linux service, you can use the following command:

service httpd start Start

service httpd restart Restart

service httpd stop Stop service


Linux system for Ubuntu

First, Start Apache 2 Server/Start apache service

# /etc/init.d/apache2 startor$ sudo /etc/init .d/apache2 start

Second, Restart Apache 2 Server /Restart apache service

# /etc/init.d/apache2 restartor$ sudo /etc/init.d/apache2 restart

, Stop Apache 2 Server /stop apache service

# /etc/init.d/apache2 stopor $ sudo /etc/init.d/apache2 stop

Copyright © Windows knowledge All Rights Reserved