在Ubuntu 中使用 chkconfig命令报错

chkconfig: command not found

问题原因
Ubuntu 中 chkconfig 已经被 sysv-rc-conf 所替代

解决办法:

apt-get update
apt-get install sysv-rc-conf
sysv-rc-conf --list

在进行安装sysv-rc-conf 有可能会出现Unable to locate package sysv-rc-conf
解决办法:

第一步:打开sources.list文件
vi /etc/apt/sources.list
第二步:在sources.list文件最后一行中添加如下一列文本
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
第三步:更新apt-get
 apt-get update
 第四步:重新安装sysv-rc-conf
 apt-get install sysv-rc-conf
 第五步:查看服务情况

在这里插入图片描述
完成

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐