ubuntu 10.04中的chkconfig问题

时间:2013-01-03 06:53:10

标签: mysql ubuntu

执行此chkconfig --add mysql命令。已完成ln -s /usr/lib/insserv/insserv /sbin/insserv,但问题占上风。

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

小帮助将不胜感激。 谢谢。

2 个答案:

答案 0 :(得分:0)

对于Ubuntu 10.04 sysv-rc-conf可能是一个选项。尝试安装:

sudo sysv-rc-conf

它带有CLI GUI界面。

http://manpages.ubuntu.com/manpages/lucid/man8/sysv-rc-conf.8.html

答案 1 :(得分:0)

chkconfig不是Ubuntu / Debian的原生,它来自Redhat / Fedora世界。

如果您使用标准机制在Ubuntu上安装MySQL服务器:

sudo apt-get install mysql-server

那么你真的不需要做任何特别的工作或将其注册为服务 - 它已经在系统中注册,以便在启动时自动启动。

您仍然可以使用service命令,例如:

sudo service mysql restart