Stopping, starting, and restarting services with systemctl on RHEL/CentOS



Stopping, starting, and restarting services with systemctl on RHEL/CentOS:

systemctl status sshd.service
systemctl stop sshd.service
systemctl start sshd.service
systemctl restart sshd.service
systemctl reload sshd.service

4 thoughts on “Stopping, starting, and restarting services with systemctl on RHEL/CentOS

  1. Hi Brian, i tried the restart command after changing a bit on sshd_config file, but the change was not applied (the change was "PermitRootLogin yes") i am still not able to access using the root on RHEL 7.7.
    could you please help on that?

Leave a Reply

Your email address will not be published. Required fields are marked *