当在Ubuntu环境下使用apt-get update和sudo apt-get install chkconfig安装不上chkconfig时,可以尝试如下方法:
1. 安装 sysv-rc-conf
# apt-get install sysv-rc-conf
2.链接 chkconfig
# cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
3.测试
执行 chkconfig 命令
# chkconfig
(退出是q键)
当在Ubuntu环境下使用apt-get update和sudo apt-get install chkconfig安装不上chkconfig时,可以尝试如下方法:
1. 安装 sysv-rc-conf
# apt-get install sysv-rc-conf
2.链接 chkconfig
# cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
3.测试
执行 chkconfig 命令
# chkconfig
(退出是q键)