Linux下端口被占用

278 阅读1分钟

 Linux下端口被占用(例如端口3000),关掉端口占用的进程的方法:

 

1.netstat -tln | grep 3000

 

2.sudo lsof -i:3000

 

3.sudo kill -9 进程