0

发生这种情况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

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

4

2 回答 2

0

对于 Ubuntu 10.04sysv-rc-conf可能是一个选项。尝试通过以下方式安装它:

sudo sysv-rc-conf

它带有 CLI GUI 界面。

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

于 2013-01-03T07:07:39.630 回答
0

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

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

sudo apt-get install mysql-server

那么您实际上不需要做任何特别的事情来使其工作或将其注册为服务 - 它已经在系统中注册以在启动时自动启动。

为了方便起见,您仍然可以使用service命令,例如:

sudo service mysql restart
于 2013-01-03T07:07:50.747 回答