1、抛出问题
➜ ~ sudo chkconfig --list
zsh: command not found: chkconfig
2、解决办法
第一步
sudo apt-get update
第二步
sudo apt-get install sysv-rc-conf
执行第二步出现问题
Unable to locate package sysv-rc-conf
2.1、解决办法
第一步:打开sources.list文件
do vi /etc/apt/sources.list
第二步:在sources.list文件最后添加以下内容
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
第三步:再次执行apt-get update
sudo apt-get update
3、重新安装sysv-rc-conf
sudo apt-get install sysv-rc-conf
安装过程中遇到需要确定的y
4、检查是否安装成功
命令
sudo sysv-rc-conf
图解
看到这个页面证明已经安装成功了😄
5、最后关键一步
命令
sudo cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
5.1、查看是否有chkconfig命令
命令
➜ ~ chkconfig --list