View on mac oxs process is listening port number lsof

sudo netstat -ltnp |grep xxx

lsof -p 26917 | grep LISTEN

https://mengkang.net/1090.html

Guess you like

Origin www.cnblogs.com/zhouj-happy/p/11131643.html