在linux中要重啓apache服務與在windows是有很大的區別,下面我們來介紹一下常用的命令
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
方法其實很簡單,有需要的同學可以備案一下。