一、前言

idea关了,tomcat在跑的进程没关,导致占用了一个端口,而现在要用这个端口,没法用。

windows端口占用查看命令(windows端口关闭工具)-第1张图片

二、操作

1.查看进程号

netstat -ano | findstr "端口号"# examplenetstat -ano |findstr "1099"
windows端口占用查看命令(windows端口关闭工具)-第2张图片

2.杀掉进程

taskkill /f /t /im "进程号"# example:taskkill /f /t /im "16636"
windows端口占用查看命令(windows端口关闭工具)-第3张图片

评论(0条)

刀客源码 游客评论