浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
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


由于同时启用apache2 和nginx会报80端口占用的错误

由于之前没有起来显示如下的内容,

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

当时修改停止完apache2后,还是这样,原因是有cache,我直接按回车的没有刷新,我如果后面加个?就重新请求了,好险


posted on 2010-12-28 12:00  lexus  阅读(282)  评论(0编辑  收藏  举报