linux中使用netstat命令
来源:互联网 发布:黑马程序员好找工作吗 编辑:程序博客网 时间:2024/05/16 05:47
Netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。
监控系统资源时较长用的命令为:(查看tcp连接的连接状态)
netstat -n -c |grep tcp
其参数说明:
-r, --route display routing table
-I, --interfaces=[<Iface>] display interface table for <Iface>
-i, --interfaces display interface table
-g, --groups display multicast group memberships
-s, --statistics display networking statistics (like SNMP)
-M, --masquerade display masqueraded connections
-v, --verbose be verbose
-n, --numeric don't resolve names
--numeric-hosts don't resolve host names
--numeric-ports don't resolve port names
--numeric-users don't resolve user names
-N, --symbolic resolve hardware names
-e, --extend display other/more information
-p, --programs display PID/Program name for sockets
-c, --continuous continuous listing
-l, --listening display listening server sockets
-a, --all, --listening display all sockets (default: connected)
-o, --timers display timers
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB
-T, --notrim stop trimming long addresses
-Z, --context display SELinux security context for sockets
其中的状态大概有以下几种:
CLOSED:无连接是活动的或正在进行
LISTEN:服务器在等待进入呼叫
SYN_RECV:一个连接请求已经到达,等待确认
SYN_SENT:应用已经开始,打开一个连接
ESTABLISHED:正常数据传输状态
FIN_WAIT1:应用说它已经完成
FIN_WAIT2:另一边已同意释放
ITMED_WAIT:等待所有分组死掉
CLOSING:两边同时尝试关闭
TIME_WAIT:另一边已初始化一个释放
LAST_ACK:等待所有分组死掉
- linux中使用netstat命令
- linux中netstat命令
- Linux中netstat命令详解
- Linux中netstat命令详解
- linux中netstat的使用
- Linux中netstat命令的用法详解
- linux中netstat命令用法详解
- Linux中netstat命令的用法详解
- Linux中netstat命令的用法详解
- Linux中netstat命令的用法详解
- Linux下 Netstat 命令使用(一)
- Linux下 Netstat 命令使用(二)
- Linux下 Netstat 命令使用(一)
- Linux下 Netstat 命令使用(二)
- Linux中的netstat命令使用教程
- linux 操作系统中显示网络相关的信息netstat命令的使用
- Netstat命令详解 netstat命令怎样使用
- linux下netstat命令
- centos 5.4 升级php到5.3的方法
- (转)C语言中的位运算
- 非安装版_Tomcat不能手动启动解决
- SCP 命令详解
- 网站首页用户分析的四种类型
- linux中使用netstat命令
- 如何动态创建数据库表
- 创建一个filter实例(transform filter)
- 内存分配器
- (转)CreateFont
- linux服务器自动对时
- git使用介绍
- 公司内部DNS无法解析某域名、或访问速度慢
- VC++动态链接库编程之MFC扩展DLL