Linux下如何start, stop, restart Apache httpd?

{{ time }}

并不是运行在网络上找到的一个直接的指令, 因为一个Linux下可能安装有多个Apache httpd, 你所操作的并不一定是正在运行的.

所以这件事是3步.

Step1 找到你正在运行的Apache的路径

Step2 进入这个Apache的路径的bin子目录, 如ddd/abc/apache/bin

Step3 在此目录运行以下指令

 ./apachectl start
#或
 ./apachectl stop
#或
 ./apachectl restart