环境:Centos7 1.根据服务查询器监听端口号 # netstat -anp | grep sshd image.png 2.根据监听端口号查询运行的服务 # netstat -anp | grep 22 image.png