美文网首页
ubuntu统计访问服务器的ip信息

ubuntu统计访问服务器的ip信息

作者: 时彬斌 | 来源:发表于2020-01-18 11:43 被阅读0次

如题:

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

1 110.116.101.149
      1 Address
      1 servers)
      2 110.116.101.150
      3 101.123.121.133
     10 101.123.121.144
    500 192.168.0.22
   1008 192.168.0.33

前面的数字代表的是连接数,后面的事ip信息

相关文章

网友评论

      本文标题:ubuntu统计访问服务器的ip信息

      本文链接:https://www.haomeiwen.com/subject/irskzctx.html