linux之netstat使用--10个常用的命令
【摘要】 地址:http://www.thegeekstuff.com/2010/03/netstat-command-examples/
1.列出所有的端口
netstat -a 列出TCP协议的端口 netstat -at UDP协议的端口 netstat -au
2.列出处于监听状态的so...
地址:http://www.thegeekstuff.com/2010/03/netstat-command-examples/
1.列出所有的端口
netstat -a
列出TCP协议的端口
netstat -at
UDP协议的端口
netstat -au
2.列出处于监听状态的socket
netstat -l
列出监听的TCP端口
netstat -lt
列出监听的UDP端口
netstat -lu
列出监听的UNIX端口
netstat -lx
3.列出协议的统计信息
nestat -s
比如: Ip:
11150 total packets received
1 with invalid addresses
0 forwarded
0 incoming packets discarded
11149 incoming packets delivered
11635 requests sent out
Icmp:
0 ICMP messages received
0 input ICMP message failed.
Tcp:
582 active connections openings
2 failed connection attempts
文章来源: chenyu.blog.csdn.net,作者:chen.yu,版权归原作者所有,如需转载,请联系作者。
原文链接:chenyu.blog.csdn.net/article/details/62065301
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
作者其他文章
评论(0)