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`
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`
I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.
Work in IT industry, AI is my working partner.