chkconfig服务是redhat下的服务 ,ubuntu默认不安装chkconfig。因为习惯使用chkconfig来管理服务的开机自启,所以查了下资料。
环境:ubuntu14
安装chkconfig服务
1,更新源并安装sysv-rc-conf
apt-get update &&apt-get -y install sysv-rc-conf
2,链接chkconfig
cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
-rwxr-xr-x 1 root root 35946 Aug 14 10:59 /usr/sbin/chkconfig*
3,测试
chkconfig --list