这是一个创建于 4579 天前的主题,其中的信息可能已经有所发展或是发生改变。
mac 里什么什么命令能达到linux的这个效果(netstat -tunlp),列出正在监听的所有端口。
# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:11111 0.0.0.0:* LISTE 4866/ricci
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 23940/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 29702/sshd
tcp 0 0 :::22 :::* LISTEN 29702/sshd
2 条回复 1970-01-01 08:00:00 +08:00  | | 1 keepzero 2013-06-07 00:45:22 +08:00 1 netstat -anL |
 | | 2 lululau 2013-06-07 01:20:34 +08:00 lsof -ni | grep LISTEN |