Socket Statistics
2016-04-01 22:20
537 查看
ss是Socket Statistics的缩写。
netstat tips
1, netstat some of the commonly used options
netstat-s option to the various agreements were displayed according to their statistics.
netstat-e This option is used to display statistics on the Ethernet.
netstat-r This option displays information on the routing table.
netstat-a This option displays a list of all the valid connection information, including the connection has been established and the monitoring connection requests LISTENING ESTABLISHED connection.
netstat-n shows all connections established and effective
Show local listening TCP/UDP ports, and the process they belong to:
它利用到了TCP协议栈中tcp_diag。tcp_diag是一个用于分析统计的模块,可以获得Linux
内核中第一手的信息,这就确保了ss的快捷高效。当然,如果你的系统中没有tcp_diag,ss也可以正常运行,只是效率会变得稍慢。(但仍然比 netstat要快。)
netstat命令是net-tools工具集中的一员
而ss
4000
命令是iproute工具集中的一员:
yum
install
iproute
iproute-doc
netstat tips
1, netstat some of the commonly used options
netstat-s option to the various agreements were displayed according to their statistics.
netstat-e This option is used to display statistics on the Ethernet.
netstat-r This option displays information on the routing table.
netstat-a This option displays a list of all the valid connection information, including the connection has been established and the monitoring connection requests LISTENING ESTABLISHED connection.
netstat-n shows all connections established and effective
Show local listening TCP/UDP ports, and the process they belong to:
netstat -tulpn
它利用到了TCP协议栈中tcp_diag。tcp_diag是一个用于分析统计的模块,可以获得Linux
内核中第一手的信息,这就确保了ss的快捷高效。当然,如果你的系统中没有tcp_diag,ss也可以正常运行,只是效率会变得稍慢。(但仍然比 netstat要快。)
netstat命令是net-tools工具集中的一员
而ss
4000
命令是iproute工具集中的一员:
yum
install
iproute
iproute-doc
相关文章推荐
- mysql 数据长度
- 面试/笔试数据结构之排序算法篇
- 深入java多态
- FZU 2104 Floor problem(水题)
- Python 自定义模块导入
- Linux SD卡驱动开发(二) —— SD 卡驱动分析HOST篇
- 1. Two Sum----LeetCode
- js中的数据类型转换
- 110.科技庄园(多重背包)(未结题)
- 关于Spring Security的笔记
- 面向服务的程序封装Save方法的错误
- vmware因为之前卸载不干净导致安装失败问题的解决
- VMware下实现Ubuntu全屏和文件之间的便捷传递
- 构建之法阅读笔记02
- IOS开发-UI学习-UIWebView,简单浏览器的制作
- poj 3264(RMQ或者线段树)
- 关于地理编码与反地理编码
- hdu 1542 线段树扫描(面积)
- 今天遇到一个poi导入的问题 参考别人的写了一个
- 你离顶尖Java程序员,只差这11本书的距离