查看进程是否启动端口是否开放

ps -ef|grep "/sshd"|grep -v grep|wc -l

1

netstat -lntup|grep sshd |wc -l

原文地址:https://www.cnblogs.com/liulj0713/p/8039467.html