- CMD
- 查端口
netstat -ano|findstr {port}
- 杀进程
taskkill /pid {pid} -f
2. Linux
- 查端口
netstat -tunlp |grep {port}
lsof -i:{}
- 杀进程
kill -9 {PID}
netstat -ano|findstr {port}
taskkill /pid {pid} -f
2. Linux
netstat -tunlp |grep {port}
lsof -i:{}
kill -9 {PID}