Back

如何停止mysql, php等一些无用的自动启动进程?

发布时间: 2015-08-06 03:54:00

使用  update_rc.d. 

>update-rc.d 
usage: update-rc.d [-n] [-f]  remove
       update-rc.d [-n]  defaults [NN | SS KK]
       update-rc.d [-n]  start|stop NN runlvl [runlvl] [...] .
       update-rc.d [-n]  disable|enable [S|2|3|4|5]
		-n: not really
		-f: force

The disable|enable API is not stable and might change in the future.
下面是个例子: sudo update-rc.d php5-fpm disable
sudo service php5-fpm stop

先去掉 自动启动链接,再停止这个服务。

Back