How do you disable a service from starting at boot in CentOS?

Learn how to disable a service from starting at boot in CentOS by following simple steps and managing your system efficiently.

How do you disable a service from starting at boot in CentOS?

To disable a service from starting at boot in CentOS, you can use the systemctl command. Here are the steps:

  1. Open a terminal on your CentOS system.

  2. Disable the service from starting at boot:

     
    sudo systemctl disable <service-name>

Replace <service-name> with the name of the service you want to disable. For example, to disable the httpd (Apache web server) service, you would run:

 
sudo systemctl disable httpd
  1. Verify that the service is disabled:
     
    sudo systemctl is-enabled <service-name>

If the service is disabled, this command should return disabled.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow