开机改用nginx启动,停止apache2的开机启动

http://www.arthurtoday.com/2010/07/ubuntu-apache.html

阿舍最近想用 Nginx 取代 Apache 來跑 Drupal,但是,還不想要把 Apache 移除,怕以後還會用到,不想重裝,所以,就想到先把它從 Ubuntu 的啟動程式名單中移除,讓 Apache 不會在開機後自己啟動起來,阿舍去找了一下,用指令的方法不難,用 update-rc.d 的指令就行了,指令如下:

sudo update-rc.d -f apache2 remove

如果要把 Apache 再再放回啟程式,就用下面的指令就可以了... ( 請注一下,最後的那個 defaults 是有加 s 的哩 ! 阿舍一開始還打錯的哩 !!....=___=!! )...

sudo update-rc.d apache2 defaults

Read more: Ubuntu 如何用指令停止 Apache 的開機啟動 ? | 阿舍的隨手記記、隨手寫寫... http://www.arthurtoday.com/2010/07/ubuntu-apache.html#ixzz19NIdH96F 
Under Creative Commons License: Attribution No Derivatives


原文地址:https://www.cnblogs.com/lexus/p/1918758.html