需要以管理员运行cmd
显示哪个进程占用端口
netstat -aon|findstr 8080
得到
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 13668
TCP [::]:8001 [::]:0 LISTENING 13668
关闭进程
taskkill /F /PID 13668
需要以管理员运行cmd
显示哪个进程占用端口
netstat -aon|findstr 8080
得到
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 13668
TCP [::]:8001 [::]:0 LISTENING 13668
关闭进程
taskkill /F /PID 13668
小技巧,杀死window中占用的进程释放端口
1、在cmd内查询所有端口以及被占用情况netstat -abn(含进程名称)netstat -ano (不含进程名称),查出PID值,然后,
查看端口netstat -ano | find "80"根据pid查找进程tasklist | find "<PID号>
1.根据端口查看占用进程netstat -tunlp | grep 端口显示tcp6 0 0 :::20401 :::* LISTEN 226795/java说明 进程 226795
查看端口占用的进程
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M