chkconfig用法总结

本文详细介绍了Linux系统中chkconfig命令的使用,包括如何添加、删除服务,以及查看服务在不同运行级别的启动状态。通过示例演示了如何管理httpd服务,并探讨了如何将自定义脚本添加到chkconfig服务中,以便于通过service命令调用。最后,文章提到了rc.local作为开机启动服务的灵活性。
摘要由CSDN通过智能技术生成

linux下man chkconfig帮助,得到如下文档:


     NAME
       chkconfig  -  updates  and queries runlevel information for system services

    OPTIONS
       --level levels
              Specifies the run levels an operation should pertain to.  It  is
              given  as  a string of numbers from 0 to 6. For example, --level
              35 specifies runlevels 3 and 5.

       --add name

              This option adds a new  service  for  management  by  chkconfig.
              When  a new service is added, chkconfig ensures that the service
              has either a start or a kill entry in  every  runlevel.  If  any
              runlevel  is missing such an entry, chkconfig creates the appro-
              priate entry as specified by Stop entries are
              present, the start and stop priorities of  the  script  will  be
              adjusted to

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值