1.Netstat 命令
用于显示各种网络相关信息,如网络连接、路由表、接口状态等。
[En]
It is used to display various network related information, such as network connection, routing table, interface status, etc.
例如 统计IP110.120.119.XXX的连接数:
netstat | grep 110.120.119.XXX |wc -l
列出所有 tcp 端口 netstat -at
查看端口3306的使用情况
netstat tunlp | grep 3306