centos7如何查看ssh服务状态
centos7中查看ssh服务状态的方法:1、打开centos7终端;2、在centos7终端命令行中输入“systemctl status sshd.service”命令查看ssh服务状态即可。
具体操作步骤:
1、在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。
2、在centos7终端命令行中输入以下命令查看ssh服务状态即可。
systemctl status sshd.service #查看ssh服务状态
相关操作命令:
systemctl restart sshd.service #重启ssh服务
systemctl start sshd.service #开启ssh服务
systemctl enable sshd.service #设置ssh服务开机自启
版权声明
本文仅代表作者观点,不代表米安网络立场。
上一篇:linux怎么查看数据库连接数 下一篇:win10怎么设置亮度
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。