Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 UNIX 操作系统中,当我知道进程名称或 pid 时如何找到端口号?
netstat -pl | grep NAME_OR_PID
ss-plnt | grep PID | gawk '{打印 $4}' | sed -e 's/[^0-9]//g'