windows 查看端口对应的进程 netstat -nao | findstr 4011 查看进程的PID tasklist |findstr java.exe 查看pid占用的端口号 netstat -ano [pid] linux lsof -i:端口号 netstat -tunlp 端口号