In CentOS 7/RHEL 7 the 'service' command has now been changed to systemctl. Now the command are:
systemctl start sshd.service
The above line will start sshd service.
systemctl restart sshd
The above line is a short form command.
chkconfig command has also changed.
Now to enable service during boot is:
systemctl enable sshd
To disable service during boot is:
systemctl disable sshd
To check startup list:
systemctl list-unit-files --type=service
systemctl start sshd.service
The above line will start sshd service.
systemctl restart sshd
The above line is a short form command.
chkconfig command has also changed.
Now to enable service during boot is:
systemctl enable sshd
To disable service during boot is:
systemctl disable sshd
To check startup list:
systemctl list-unit-files --type=service
Comments
Post a Comment