windows 根据端口 杀死占用进程 打开命令窗口 netstat -ano | findstr "port" #查看到对应进程id taskkill -PID processId -F #杀死进程 processId centos 根据端口 杀死占用进程 netstat -tlnp|grep port kill -9 processid