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