ubuntu中并沒有chkconfig,但我們可以使用sysv-rc-conf
代替
一、chkconfig安裝
1.1 安裝 sysv-rc-conf
#apt-get install sysv-rc-conf
1.2鏈接chkconfig
#cp /usr/sbin/sysv-rc-conf /usr/sbin/chkconfig
二、測試
執行 chkconfig 命令
# chkconfig
ps:ubuntu使用chkconfig命令來管理服務
安裝命令:
sudo apt-get install chkconfig
(可以用sysv-rc-conf代替)
在ubuntu下使用應該會出現這樣的錯誤:
/sbin/insserv: No such file or directory
解決辦法:sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
總結
以上所述是小編給大家介紹的ubuntu14.04中安裝chkconfig服務管理程序的方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對武林網網站的支持!
新聞熱點
疑難解答
圖片精選