Home
Sign Up
Sign In
V2EX
›
问与答
mac os 下怎么列出进程名字和端口号
ufo22940268
·
Aug 1, 2014
· 7187 views
This topic created in 4483 days ago, the information mentioned may be changed or developed.
linux下我一直用netstat -ntlp来完成这个功能,但是mac os下不行。去网上查了之后lsof -i | grep LISTEN能做到一部分,但是貌似不能列出所有进程
列出
进程
ntlp
3 replies
•
2014-08-01 12:22:47 +08:00
yangg
Aug 1, 2014 via Android
1
1
不是全部什么意思?加sudo?
ufo22940268
OP
Aug 1, 2014
2
@
yangg
好像是的。但是我有另外一个问题,不知道为什么有些进程显示的不是端口号,比如Charles 1115 ccheng 56u IPv6 0x5e13e897b20c9df5 0t0 TCP *:distinct (LISTEN)
randal
Aug 1, 2014
3
-P, 不行就man看下
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4567 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 02:44
·
PVG 10:44
·
LAX 18:44
·
JFK 21:44
♥ Do have faith in what you're doing.
❯