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.
To disable a service from starting at boot in CentOS, you can use the systemctl
command. Here are the steps:
-
Open a terminal on your CentOS system.
-
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
- 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?