在 linux 上sudo netstat -ltnp |grep xxx在mac上,1024是端口端口查询: lsof -i tcp:1024sudo lsof -PiTCP -sTCP:LISTEN进程查询:ps aux | less