linux下解除端口占用

1、找出占用端口进程的pid

sudo lsof -i:port

2、终止进程

sudo kill -9 pid

 

你可能感兴趣的:(Linux,linux)