netstat查看某个端口或者ip地址TCP连接数

[color=indigo][b]netstat一般用来查看网络连接情况,如多少TCP连接,多少UDP连接情况[/b][/color]


下面的命令可以查看TCP连接情况,包括连接状态,进程ID,执行的程序是哪个,可以用grep进行过滤。

如:
netstat -anlpt|grep 40.74

配合ps -ef | grep 内容或者tomcat6s工具可以查看是哪个应用进行导致的。


[img]http://dl2.iteye.com/upload/attachment/0121/7265/e3a029e2-6fd4-3124-8004-0ce49531c25a.jpg[/img]


netstat命名详解见
[url]http://825635381.iteye.com/blog/2342819[/url]


欢迎大家关注我的公众号

[img]http://dl2.iteye.com/upload/attachment/0129/4874/8f85aa2e-a55d-3a54-80cf-8759055b353d.jpg[/img]

你可能感兴趣的:(linux)