• Introduction:

    throughchkconfigCommand to set the running levels of a service fromStart/close
  • chkconfigCommand management services in/etc/init.dTo view

  • Note:Centos7.0After that, many services are usedsystemctlmanagement
  • chkconfigThe basic grammar

  1. Check the servicechkconfig --list [| grep xxx]



  2. Chkconfig service name --list

  3. Chkconfig --level 5 Service name on/off
  • Case study: RightnetworkThe service performs various operations on thenetwork3Run level, turn off autostart
Chkconfig --level 3 network off // Chkconfig --level 3 network on // EnableCopy the code

  • Using the details

    chkconfigAfter resetting the service, restart the machinerebootTo take effect.