什么命令是用于安裝apache服務的?
1) 安裝apache服務的命令
httpd.exe?-k?install
2) 指定要安裝的服務的名稱(適用于電腦上有幾個不同的Apache服務設施)
httpd.exe?-k?install?-n?“MyServiceName”
3) 指定服務配置文件的路徑和名稱
httpd.exe?-k?install?-n?“MyServiceName”?-f?“c:filesmy.conf”
注:若不使用特殊參數(如httpd.exe -k install),服務名稱為Apache2.X,配置文件為confhttpd.conf
4) 移除一個Apache服務
httpd.exe?-k?uninstall
5) 移除特定的Apache服務
httpd.exe?-k?uninstall?-n?“MyServiceName”
管理Apache服務
1) 啟動已安裝的Apache服務
httpd.exe?-k?start
2) 停止已安裝的Apache服務
httpd.exe?-k?stop?||?httpd.exe?-k?shutdown
3) 重啟已安裝的Apache服務(迫使服務重讀配置文件,適用于修改配置文件后)
httpd.exe?-k?restart
更多Apache相關知識,請訪問Apache使用教程欄目!
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END