V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fdhdd
V2EX  ›  macOS

MAC 如何根据进程 id 查询端口

  •  
  •   fdhdd · Apr 25, 2017 · 4612 views
    This topic created in 3292 days ago, the information mentioned may be changed or developed.
    mac 下面如何根据进程 id, 查询这个进程都占用了哪些端口
    2 replies    2017-04-26 09:25:19 +08:00
    RIcter
        1
    RIcter  
       Apr 25, 2017   ❤️ 1
    lsof -n -P | grep PID
    为啥不百度(。
    xss
        2
    xss  
       Apr 26, 2017
    ss -apn|grep PID (???)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2600 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 12:35 · PVG 20:35 · LAX 05:35 · JFK 08:35
    ♥ Do have faith in what you're doing.