zoukankan      html  css  js  c++  java
  • 让apache2不开机启动,管理Ubuntu的开机启动项

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

    使用命令行:

    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
  • 相关阅读:
    MySQL数据模型
    Spring循环依赖
    @Autowired和@Resource区别
    Kafka概念
    阻塞队列
    线程池原理
    Spring AOP
    JVM 史上最最最完整深入解析(12000 字噢)
    Dubbo配置信息
    友情链接
  • 原文地址:https://www.cnblogs.com/tfanalysis/p/4107389.html
Copyright © 2011-2022 走看看