• Why is chkconfig no longer available in Ubuntu?


    Question:

      

      I can not use chkconfig tools in Ubuntu 12.10

      It's a very useful tools to configure the service to autostart or not. Why is it no longer available?

    Answer:

      

    sysv-rc-conf is an alternate option for Ubuntu.

    The usage is almost the same.

    To install:

    sudo apt-get install sysv-rc-conf
    

    To configure apache2 to start on boot

    sysv-rc-conf apache2 on
    

    equivalent chkconfig command

    chkconfig apache2 enable
    

    To check runlevels apache2 is configured to start on

    sysv-rc-conf --list apache2
    

    equivalent chkconfig command

    chkconfig --list apache2

      ------------------------------------------------------------------------------------------------------------

    The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfigis update-rc.d.This command nearly supports all the new versions of ubuntu.

    The similar commands are

    update-rc.d <service> defaults
    
    update-rc.d <service> start 20 3 4 5
    
    update-rc.d -f <service>  remove
  • 相关阅读:
    laravel excel 导入
    linux 怎么解压
    mysql分表和表分区详解
    mysql主从复制windows-》linux
    Redis和Memcache的区别
    mysql group by 用法解析(详细)
    [置顶] mysql常用函数
    mysql测试数据库employees一些sql语句
    session入mysql
    session入库
  • 原文地址:https://www.cnblogs.com/oxspirt/p/8946238.html
Copyright © 2020-2023  润新知