Win10怎么禁用被占用的端口?Win10禁用被占用的端口方法
时间:2023-02-02 00:24:11
有用户反映说有时候运行一些程序的过程中,会遇到端口被占用的情况,导致程序无法正常使用,那么如果遇到Win10系统端口被占用怎么解除呢?快来一起看看吧。
具体步骤:
1、打开命令窗口(以管理员身份运行)。
开始—-》运行—-》cmd,或者是 window+R 组合键,调出命令窗口。
![Win10怎么禁用被占用的端口?Win10禁用被占用的端口方法](https://img.aspxhome.com/file/2023/1/a281826_0.png)
2、查找所有运行的端口。
输入命令:
netstat -ano
该命令列出所有端口的使用情况。
在列表中我们观察被占用的端口,比如是 1224,首先找到它。
![Win10怎么禁用被占用的端口?Win10禁用被占用的端口方法](https://img.aspxhome.com/file/2023/1/a281826_1.png)
3、查看被占用端口对应的 PID。
输入命令:
netstat -aon|findstr “8081”
回车执行该命令,最后一位数字就是 PID, 这里是 9088。
![Win10怎么禁用被占用的端口?Win10禁用被占用的端口方法](https://img.aspxhome.com/file/2023/1/a281826_2.png)
4、查看指定 PID 的进程。
继续输入命令:
tasklist|findstr “9088”
回车执行该命令。
查看是哪个进程或者程序占用了 8081 端口,结果是:node.exe。
![Win10怎么禁用被占用的端口?Win10禁用被占用的端口方法](https://img.aspxhome.com/file/2023/1/a281826_3.png)
结束进程。
强制(/F参数)杀死 pid 为 9088 的所有进程包括子进程(/T参数):taskkill /T /F /PID 9088
标签:Win10,Win10怎么禁用被占用的端口
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win10你的设备遇到问题,需要重启我们只收集某些错误信息
2023-05-29 13:17:14
![](https://img.aspxhome.com/file/2023/30/a271526_0s.jpg)
谷歌浏览器如何重置?谷歌浏览器恢复出厂设置方法
2023-11-28 22:13:54
![](https://img.aspxhome.com/file/2023/7/a326967_0s.png)
5118站长工具箱如何在360安全浏览器中手动更新?
2022-02-24 21:14:19
![](https://img.aspxhome.com/file/2023/7/a329615_0s.jpg)
在wps演示中如何使用触发器功能
2022-04-13 17:59:43
如何解决Win10更新要卸载VirtualBox?
2023-11-14 16:49:59
![](https://img.aspxhome.com/file/2023/1/a282399_0s.png)
介绍主要的win10家庭版和专业版区别
2022-08-24 05:19:52
![](https://img.aspxhome.com/file/2023/3/a298006_0s.png)
Word2013文档中插入文字水印的方法
2023-12-12 13:58:27
![](https://img.aspxhome.com/file/2023/6/20916_0s.jpg)
iOS/iPadOS 14还有哪些未提及的小更新?
2023-02-04 03:54:06
![](https://img.aspxhome.com/file/2023/8/a194978_0s.png)
Win10压缩文件不显示压缩图标怎么办?
2023-09-06 22:23:36
![](https://img.aspxhome.com/file/2023/26/a219722_0s.jpg)
word破折号怎么打出来
2023-07-15 20:07:14
![](https://img.aspxhome.com/file/2023/4/35034_0s.png)
如何设置word应用样式
2023-02-21 21:32:57
![](https://img.aspxhome.com/file/2023/7/32217_0s.jpg)
excel怎么保留内容合并单元格?excel合并单元格保留内容快捷方法
2022-03-21 22:12:04
![](https://img.aspxhome.com/file/2023/4/39704_0s.jpg)
excel怎么结合visio制作带有照片的组织结构图?
2022-06-22 06:20:26
![](https://img.aspxhome.com/file/2023/3/a141563_0s.jpg)
如何为wps文本添加背景
2023-06-09 18:59:28
![](https://img.aspxhome.com/file/2023/3/a170323_0s.jpg)
win7怎么弄成不保存文件地址栏下拉列表中的访问历史
2022-02-08 23:30:10
![](https://img.aspxhome.com/file/2023/29/a255708_0s.jpg)
如何让Word 默认保存格式为doc
2022-08-09 07:43:31
![](https://img.aspxhome.com/file/2023/5/33845_0s.jpg)
wps2019怎么调整字符间距?wps2019调整字符间距教程
2022-04-12 02:19:08
![](https://img.aspxhome.com/file/2023/9/a166049_0s.jpg)
Geek Uninstaller专业卸载如何使用?
2023-08-25 14:47:02
![](https://img.aspxhome.com/file/2023/8/a336622_0s.jpg)
excel中hlookup函数的使用方法
2023-02-21 21:34:13
WPS表格 插入与单元格同样大小的形状 动画教程
2023-12-18 14:07:01