原因:同时安装了nginx和apache,使用了apache,但重启后nginx占用了80 port,需要取消nginx的自启动
取消niginx的自启动
尝试方法1(来源网络): 安装/使用 sysv-rc-conf
sysv-rc-conf 是界面操作,reboot查看无效
尝试方法2: 修改/etc/init.d/,/etc/rc0.d/,/etc/rc1.d/,/etc/rc2.d/,/etc/rc3.d/,/etc/rc4.d/,
/etc/rc5.d/,/etc/rc6.d/,/etc/rc.local/ 下nginx相关的文件。
尝试方法3: 使用update-rc.d命令:
update-rc.d -f nginx remove
3个方法都无效,reboot后nginx还在,原因未知&#