Ⅰ insserv 是個什麼工具
insserv是debian系列的命令,
redhat系列沒有。
用來管理初始化腳本的。
具體可以查debian的man
Ⅱ chkconfig在ubuntu里用什麼命令替代
安裝命令:
sudo apt-get install chkconfig
(可以用sysv-rc-conf代替)
關於chkconfig命令的使用點擊這里
在ubuntu下使用應該會出現這樣的錯誤:
/sbin/insserv: No such file or directory
據說這是Ubuntu的小bug
解決辦法:sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
Ⅲ insserv:FATAL:service network is missed in runlevel 2 to use service smpppd. insserv:exiting now!
1、chkconfig --level 235 network on
2、ds@linux-5298:~> /sbin/chkconfig -l |grep network
network 0:off 1:off 2:on 3:on 4:off 5:on 6:off
network-remotefs 0:off 1:off 2:off 3:on 4:off 5:on 6:off
可以看到network 2:on
3、chkconfig --level 35 smpppd on