tips:linux 查看被占用端口
1、强制杀死该端口进程
sudo fuser -k -n tcp 7001
2、根据PID关闭某个被占用的端口
netstat -tunlp | grep 7001
lsof -i:7001
sudo kill -9 PID
tips:linux 查看被占用端口
1、强制杀死该端口进程
sudo fuser -k -n tcp 7001
2、根据PID关闭某个被占用的端口
netstat -tunlp | grep 7001
lsof -i:7001
sudo kill -9 PID