linux 下 apache啟動、停止、重啟命令


   

基本的操作方法:

本文假設你的apahce安裝目錄為/usr/local/apache2,這些方法適合任何情況

apahce啟動命令:

推薦/usr/local/apache2/bin/apachectl start apaceh啟動

apache停止命令

/usr/local/apache2/bin/apachectl stop   停止

apache重新啟動命令:

/usr/local/apache2/bin/apachectl restart 重啟

要在重啟 Apache 服務器時不中斷當前的連接,則應運行:

/usr/local/sbin/apachectl graceful

如果apache安裝成為linux的服務的話,可以用以下命令操作:

service httpd start 啟動

service httpd restart 重新啟動

service httpd stop 停止服務

Linux系統為Ubuntu

一、Start Apache 2 Server /啟動apache服務

# /etc/init.d/apache2 start

or

$ sudo /etc/init.d/apache2 start

二、 Restart Apache 2 Server /重啟apache服務

# /etc/init.d/apache2 restart

or

$ sudo /etc/init.d/apache2 restart

三、Stop Apache 2 Server /停止apache服務

# /etc/init.d/apache2 stop

or

$ sudo /etc/init.d/apache2 stop

 

文章轉自:linux 下 apache啟動、停止、重啟命令_Linux-考高分網 (kaotop.com)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM