Sunday, 21 October 2018

How to enable/disable services on boot up in Centos7/RHEL7



In Centos 7 and RHEL 7, the systemctl command added to manage all services.
Run following command to enable Services on boot up:

[root@linuxcnf ~]# systemctl enable <Service-Name>

Run following command disable Services on boot up:

[root@linuxcnf ~]#  systemctl disable <Service-Name>

Run the following command verify the service status:

[root@linuxcnf ~]#  systemctl list-unit-files | grep <Service-Name>

Replace <Service-Name> as needed.

No comments:

Post a Comment