Buy CSG Merchandise:
http://tee.pub/lic/csg
Your support on Patreon is much appreciated: / computers_servers
This video is based on RHEL 8.
Video to cover the section 'Start, stop, and check the status of network services' for the RHCSA (Red Hat Certified System Administrator).
More information on the required learning: http://bit.ly/rhcsa8
Notes from the video:
To start a network service, type:
systemctl start sshd
Note in RHEL 6 and below it was used as following, compatability is maintained for now.
service sshd start
Note: In addition, a service can be restarted with the restart option or only reloaded with the reload option.
To stop a network service, type:
systemctl stop sshd
To check if a network service is running, type:
systemctl is-active sshd
To activate a network service at boot, type:
systemctl enable sshd
To disable a network service at boot type:
systemctl disable sshd
To check if a network service is enabled at boot, type:
systemctl is-enabled sshd
disabled
To check the status of a network service, type:
systemctl status sshd
To permanently disable a service, type:
systemctl mask sshd
Note1: Masking a service prevents it from starting even if it is socket-activated or dbus-activated.
To enable the service again:
systemctl unmask sshd
#rhcsa #rhel #linux