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

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