分页: 1 / 1

这个Mysql为什么会自启动了

发表于 : 2011-04-21 21:30
OoZOooz
我装好Mysql后,发现Mysql自启动了。我查不出它在哪里设置的。请高手帮我看一下:
我的runlevel是2

代码: 全选

linux@linux-desktop:/etc$ ls rc*
rc.local

rc0.d:
K20winbind    S10unattended-upgrades  S30urandom       S40umountfs
K74bluetooth  S15wpa-ifupdown         S31umountnfs.sh  S60umountroot
README        S20sendsigs             S35networking    S90halt

rc1.d:
K15pulseaudio    K20rsync              K20winbind    README        S70pppd-dns
K20acpi-support  K20saned              K74bluetooth  S30killprocs  S90single
K20kerneloops    K20speech-dispatcher  K80cups       S70dns-clean

rc2.d:
README                S25bluetooth   S70dns-clean       S99ondemand
S20fancontrol         S50cups        S70pppd-dns        S99rc.local
S20kerneloops         S50pulseaudio  S90binfmt-support
S20speech-dispatcher  S50rsync       S99acpi-support
S20winbind            S50saned       S99grub-common

rc3.d:
README                S25bluetooth   S70dns-clean       S99ondemand
S20fancontrol         S50cups        S70pppd-dns        S99rc.local
S20kerneloops         S50pulseaudio  S90binfmt-support
S20speech-dispatcher  S50rsync       S99acpi-support
S20winbind            S50saned       S99grub-common

rc4.d:
README                S25bluetooth   S70dns-clean       S99ondemand
S20fancontrol         S50cups        S70pppd-dns        S99rc.local
S20kerneloops         S50pulseaudio  S90binfmt-support
S20speech-dispatcher  S50rsync       S99acpi-support
S20winbind            S50saned       S99grub-common

rc5.d:
README                S25bluetooth   S70dns-clean       S99ondemand
S20fancontrol         S50cups        S70pppd-dns        S99rc.local
S20kerneloops         S50pulseaudio  S90binfmt-support
S20speech-dispatcher  S50rsync       S99acpi-support
S20winbind            S50saned       S99grub-common

rc6.d:
K20winbind    S10unattended-upgrades  S30urandom       S40umountfs
K74bluetooth  S15wpa-ifupdown         S31umountnfs.sh  S60umountroot
README        S20sendsigs             S35networking    S90reboot

rcS.d:
README          S25brltty    S47lm-sensors  S70screen-cleanup
S13pcmciautils  S37apparmor  S55urandom     S70x11-common


Re: 这个Mysql为什么会自启动了

发表于 : 2011-04-21 22:34
退避九舍

代码: 全选

修改/etc/init/mysql.conf
将其中的
start on (net-device-up
          and local-filesystems
	  and runlevel [2345])
改为
start on (net-device-up
          and local-filesystems
	  and runlevel [345])
即吧2345中的2去掉

Re: 这个Mysql为什么会自启动了

发表于 : 2011-04-22 11:08
xieshaohu
我直接注释掉了这三行。

代码: 全选

#start on (net-device-up
#          and local-filesystems
#	  and runlevel [2345])

Re: 这个Mysql为什么会自启动了

发表于 : 2011-04-22 12:59
OoZOooz
明白了,原来启动时不仅仅加载rcX.d,init首先会去执行/etc/init/*.conf的脚本部分.
谢谢!