Ubuntu16.04 关闭apache/mysql的开机启动
关闭apache的开机启动
安装sysv-rc-conf
sudo apt-get install sysv-rc-conf
运行sysv-rc-conf
sudo sysv-rc-conf
将apache2服务对应的开机启动全部去掉(即运行级别2345的都去掉)
如下图
- 按q保存退出
关闭apache的开机启动
执行如下命令即可:
sudo update-rc.d mysql disable
安装sysv-rc-conf
sudo apt-get install sysv-rc-conf
运行sysv-rc-conf
sudo sysv-rc-conf
将apache2服务对应的开机启动全部去掉(即运行级别2345的都去掉)
如下图
执行如下命令即可:
sudo update-rc.d mysql disable