Linux system CentOS 7 series restart/view/automatically start SSH and other operation commands

888u

Last update at :2024-05-14,Edit by888u

CentOs The command to restart the ssh service is as follows:

# service sshd restart

However, the above command is no longer applicable to systems 7 and above. In cloud servers such as Alibaba Cloud, restarting services under CentOS 7 is no longer operated through service, but through systemctl. The specific operation commands are as follows:

View status:

systemctl status sshd.service

Start the service:

systemctl start sshd.service

Restart the service:

systemctl restart sshd.service

Start automatically at boot:

systemctl enable sshd.service

Recommended site searches: la domain name, server rental Guangzhou host rental, Chinese domain name query, overseas server rental price, cm domain name, European server, reverse IP check, IP proxy free version 2.80,

Linux system CentOS 7 series restart/view/automatically start SSH and other operation commands

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码