2013-01-03 51 views
0

發生這種情況chkconfig --add mysql命令被執行。已完成ln -s /usr/lib/insserv/insserv /sbin/insserv,但問題盛行。ubuntu 10.04中的chkconfig問題

insserv: warning: script 'K20acpi-support' missing LSB tags and overrides 
insserv: warning: script 'mysql' missing LSB tags and overrides 
insserv: warning: script 'anacron' missing LSB tags and overrides 
insserv: warning: script 'alsa-mixer-save' missing LSB tags and overrides 
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty). 
. 
. 
. 
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty). 
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides 
insserv: warning: script 'dbus' missing LSB tags and overrides 
insserv: warning: script 'network-manager' missing LSB tags and overrides 
insserv: warning: script 'acpi-support' missing LSB tags and overrides 
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty). 
insserv: There is a loop between service rsyslog and apache2 if stopped 
insserv: loop involving service apache2 at depth 3 
insserv: loop involving service rsyslog at depth 2 
insserv: loop involving service udev at depth 1 
insserv: There is a loop between service apache2 and rsyslog if stopped 
insserv: exiting now without changing boot order! 
/sbin/insserv failed, exit code 1 
mysql      0:off 1:off 2:off 3:off 4:off 5:off 6:off 

小小的幫助,將不勝感激。 謝謝。

回答

0

chkconfig是不是本機的Ubuntu/Debian的,它來自紅帽/ Fedora的世界。

如果你安裝了MySQL服務器上使用Ubuntu的標準機制:

sudo apt-get install mysql-server 

那麼你並不真的需要做什麼特別,使其工作或註冊爲服務 - 這將在可能已經註冊系統在啓動時自動啓動。

,您仍然可以使用service命令爲方便起見,如:

​​