-
lsof -i:port MAC同样适用
netstat -ano|grep port
-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 //程序运行时显示详细信息
-W, --wide don't truncate IP addresses //不要截断IP地址
-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 //显示套接字的PID/程序名称
-o, --timers display timers //显示计时器
-c, --continuous continuous listing //连续的清单
-l, --listening display listening server sockets //显示监听服务器socket
-a, --all display all sockets (default: connected) //显示所有套接字(默认:已连接)
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB
-Z, --context display SELinux security context for sockets