1.查出占用端口的进程:
比如我要查找的8080,1099端口:
netstat -ano|findstr 8080
netstat -ano|findstr 1099

12424就是我们所查进程的id,然后干掉它
taskkill -f -pid 12424

本文介绍如何使用netstat和taskkill命令来查找正在占用特定端口(如8080、1099)的进程,并通过进程ID终止这些进程的方法。
1.查出占用端口的进程:
比如我要查找的8080,1099端口:
netstat -ano|findstr 8080
netstat -ano|findstr 1099

12424就是我们所查进程的id,然后干掉它
taskkill -f -pid 12424


被折叠的 条评论
为什么被折叠?