linux中統計指定端口的連接數目

来源:互联网 发布:手机新浪微博盗号软件 编辑:程序博客网 时间:2024/06/05 00:14

命令1: netstat -antp | grep port | wc -l

eg1: 查看solr

 netstat -antp | grep 8983 | wc -l                                          

eg2: 查看zookeeper

 netstat -antp | grep 2181 | wc -l 

原创粉丝点击