Free yourself from fixing complex.
eleven

centos默认安装了apache模块.恢复VPS的备份之后,发现nginx启动不了,80端口被apache占用了.怎么禁止apache的启动呢?

 

检查一下当前系统的httpd服务:
/sbin/chkconfig --list|grep httpd
VPS输出内容,
httpd 0:off 1:off 2:off 3:on 4:off 5:off 6:off
表明httpd还在3运行级启动.
使用命令禁止它就可以了:
/sbin/chkconfig httpd off

2011-02-13