How To Disable Service In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To disable a service in Linux, you can use the chkconfig command or the systemctl command to disable the service.
To use the chkconfig command enter the following command:
sudo chkconfig servicename off
To use the systemctl command enter the following command:
sudo systemctl disable servicename.service
To disable a service in Linux, you can use the systemctl command with the “disable” subcommand. For example, to disable the crond service, you can run this command:
systemctl disable crond