环境:Centos7
1.根据服务查询器监听端口号
# netstat -anp | grep sshd
![](https://img.haomeiwen.com/i1476485/ffb7a7e5f0a1eaef.png)
2.根据监听端口号查询运行的服务
# netstat -anp | grep 22
![](https://img.haomeiwen.com/i1476485/d896e5bf144a29fc.png)
环境:Centos7
1.根据服务查询器监听端口号
# netstat -anp | grep sshd
2.根据监听端口号查询运行的服务
# netstat -anp | grep 22
本文标题:Centos7根据服务查端口,根据端口查服务
本文链接:https://www.haomeiwen.com/subject/pqgkaqtx.html
网友评论