sysv-rc-conf 设置启动时提示我没有安装
The program 'sysv-rc-conf' is currently not installed. You can install it by typing:
apt install sysv-rc-conf
apt install sysv-rc-conf 下载时提示我错误无法定位包
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sysv-rc-conf
解决如下:
sudo apt-get update 先更新一下
显示我正在更新
继续设置自启 还是显示我错误,让我下载 ,好嘛 我继续下载
apt install sysv-rc-conf 输入下载命令,ok下载好了,中间需要输入 y 确认命令
sysv-rc-conf 输入查看设置命令
第一行service后面是运行级别,有1,2,3,4,5,0,6,S,与之前介绍的运行级别基本符合,最后一项这里不做介绍
图中打X的即表示运行在对应Runlevel时开机启动的服务,这里我们可以看到apache2在Runlevel2,3,4,均为开机启动,
对应到之前/etc/rc2.d~/etc/rc5.d目录下均为S91apache2文件,再次验证了之前的内容
将光标移动到apache2那行的第2列,按空格进行将启动项反选
按q退出之后配置即完成