Windows 端口占用 Port 端口占用 如何发现端口占用并且强杀?

应用场景

场景

有时候本地测试,经常发现端口占用。

如何找到端口占用,并且 kill 掉呢?

端口占用情况

  1. lsof -i:XXX查看

  2. sudo netstat -apn | grep XXX查看

  3. ps -aux | grep XXX详细信息

  4. ps -ef | grep XXX根据分类条件查询信息

发现并强杀

复制代码
>netstat -ano | findstr "8226"
  TCP    0.0.0.0:8226           0.0.0.0:0              LISTENING       17064

>tasklist|findstr "17064"
winrdlv3.exe                 17064 Services                   0     34,664 K

【使用管理员启动命令行】

复制代码
>taskkill /f /t /im "winrdlv3.exe"

3306 端口占用

复制代码
netstat -ano | findstr "3306"
相关推荐
sun00770023 分钟前
Windows下UniGetUI,Linux下敲命令
windows
流星白龙35 分钟前
【MySQL高阶】18.缓冲池页管理
数据库·windows·mysql
AI行业学习2 小时前
PuTTY 工具下载部署、基础配置及 SSH 远程服务器连接完整操作指南Windows 平台 【2026.6.1】
运维·windows·ssh
tealcwu2 小时前
【Unity实战】Unity IAP 4.x 在 Windows Store (UWP) 平台上的实现指南
windows·unity·游戏引擎
爱讲故事的4 小时前
操作系统第四讲:OS Interfaces and Syscalls(操作系统接口与系统调用)
linux·windows·ubuntu
糖果店的幽灵4 小时前
LangChain 1.3 完全教程:从入门到精通-Part 10: Memory(记忆系统)
windows·microsoft·langchain
tealcwu5 小时前
【Unity实战】Unity IAP 5.3 中实现 Windows Custom Store 实战教程
windows·unity·游戏引擎
ZenosDoron6 小时前
vsnprintf可变参数格式化输出函数
windows
许彰午6 小时前
11_Java集合框架概述
java·windows·python
爱分享软件的学长7 小时前
GitHub CLI 2.92.0 官方版下载(夸克网盘+百度网盘,SHA256校验)
windows·开源软件·软件下载