1 頁 (共 1 頁)

disable services on startup in ubuntu 14.04

發表於 : 2016-11-28 09:28:15
yehlu
http://askubuntu.com/questions/698993/ ... in-ubuntu

代碼: 選擇全部

root@ap:/home/yehlu# update-rc.d -f php5-fpm remove
 Removing any system startup links for /etc/init.d/php5-fpm ...
root@ap:/home/yehlu# update-rc.d -f nginx remove
 Removing any system startup links for /etc/init.d/nginx ...
   /etc/rc0.d/K20nginx
   /etc/rc1.d/K20nginx
   /etc/rc2.d/S20nginx
   /etc/rc3.d/S20nginx
   /etc/rc4.d/S20nginx
   /etc/rc5.d/S20nginx
   /etc/rc6.d/K20nginx

代碼: 選擇全部

root@ap:/home/yehlu# sudo update-rc.d apache2 enable

update-rc.d: warning:  start runlevel arguments (none) do not match apache2 Default-Start values (2 3 4 5)
update-rc.d: warning:  stop runlevel arguments (none) do not match apache2 Default-Stop values (0 1 6)
 Enabling system startup links for /etc/init.d/apache2 ...
 Removing any system startup links for /etc/init.d/apache2 ...
   /etc/rc0.d/K09apache2
   /etc/rc1.d/K09apache2
   /etc/rc2.d/S91apache2
   /etc/rc3.d/S91apache2
   /etc/rc4.d/S91apache2
   /etc/rc5.d/S91apache2
   /etc/rc6.d/K09apache2
 Adding system startup for /etc/init.d/apache2 ...
   /etc/rc0.d/K09apache2 -> ../init.d/apache2
   /etc/rc1.d/K09apache2 -> ../init.d/apache2
   /etc/rc6.d/K09apache2 -> ../init.d/apache2
   /etc/rc2.d/S91apache2 -> ../init.d/apache2
   /etc/rc3.d/S91apache2 -> ../init.d/apache2
   /etc/rc4.d/S91apache2 -> ../init.d/apache2
   /etc/rc5.d/S91apache2 -> ../init.d/apache2