Original: Linux under Apache start, stop, restart command
Basic method of Operation:
This article assumes that your APAHCE installation directory is/usr/local/apache2 and that these methods are suitable for any situation
Apahce Start command:
Recommended/usr/local/apache2/bin/apachectl Start APACEH startup
Apache Stop Command
/usr/local/apache2/bin/apachectlstop Stop
Apache Restart command:
/usr/local/apache2/bin/apachectl Restart Restart
To restart the Apache server without interrupting the current connection, you should run:
/usr/local/sbin/apachectl Graceful
If Apache is installed as a Linux service, you can do this with the following command:
Service httpd Start
Service httpd Restart Restart
Service httpd Stop Services
Linux System for Ubuntu
First, start Apache 2 server/start Apache Service
#/etc/init.d/apache2 Start
Or
$ sudo/etc/init.d/apache2 Start
Second, Restart Apache 2 server/restart Apache Service
#/etc/init.d/apache2 Restart
Or
$ sudo/etc/init.d/apache2 Restart
Third, stop Apache 2 server/stops Apache service
#/etc/init.d/apache2 Stop
Or
$ sudo/etc/init.d/apache2 Stop
Linux under Apache Start, stop, restart command