1、查看指定端口号 port替换为端口号(例如:8080) lsof -i :port 或 lsof -i tcp:port 2、杀死占用端口的进程 PID为查询到占用端口进程的PID kill -9 PID