首页 > Web开发 > 详细

让apache2不开机启动,管理Ubuntu的开机启动项

时间:2014-11-19 10:39:03      阅读:282      评论:0      收藏:0      [点我收藏+]

今天在网上发现了一个很好用的管理Ubuntu下开关启动的软件,叫做sysv-rc-conf

bubuko.com,布布扣

 

使用命令行:

tf@ubuntu:/etc/apache2$ sudo update-rc.d -f apache2 remove
 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

恢复时使用:

tf@ubuntu:/etc/apache2$ sudo update-rc.d apache2 defaults
 Adding system startup for /etc/init.d/apache2 ...
   /etc/rc0.d/K20apache2 -> ../init.d/apache2
   /etc/rc1.d/K20apache2 -> ../init.d/apache2
   /etc/rc6.d/K20apache2 -> ../init.d/apache2
   /etc/rc2.d/S20apache2 -> ../init.d/apache2
   /etc/rc3.d/S20apache2 -> ../init.d/apache2
   /etc/rc4.d/S20apache2 -> ../init.d/apache2
   /etc/rc5.d/S20apache2 -> ../init.d/apache2

 

让apache2不开机启动,管理Ubuntu的开机启动项

原文:http://www.cnblogs.com/tfanalysis/p/4107389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!