centos7操作SSH/SSHD服务(查看/启动/重启/自启)
查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
查看本地IP
ip add
红框就是我们局域网IP
2022-11-14 10:32:07
centos7操作SSH/SSHD服务(查看/启动/重启/自启)
查看状态:
systemctl status sshd.service
启动服务:
systemctl start sshd.service
重启服务:
systemctl restart sshd.service
开机自启:
systemctl enable sshd.service
查看本地IP
ip add
红框就是我们局域网IP
下一篇:2-3 嵌套if