Win10怎么禁用被占用的端口?
时间:2023-12-13 06:25:32
学过电脑的人都知道电脑上的端口开启,就有被黑客入侵的风险,所以我们为了保护电脑的安全,一般情况下都会把不用的端口禁用掉,只留下使用的端口。那么我们怎么才能查看哪些端口被占用呢?又怎么禁用掉不必要的端口呢?
具体步骤:
1、打开命令窗口(以管理员身份运行)。
开始—-》运行—-》cmd,或者是 window+R 组合键,调出命令窗口。
![Win10怎么禁用被占用的端口?](https://img.aspxhome.com/file/2023/4/50804_0.png)
2、查找所有运行的端口。
输入命令:
netstat -ano
该命令列出所有端口的使用情况。
在列表中我们观察被占用的端口,比如是 1224,首先找到它。
![Win10怎么禁用被占用的端口?](https://img.aspxhome.com/file/2023/4/50804_1.png)
3、查看被占用端口对应的 PID。
输入命令:
netstat -aon|findstr “8081”
回车执行该命令,最后一位数字就是 PID, 这里是 9088。
![Win10怎么禁用被占用的端口?](https://img.aspxhome.com/file/2023/4/50804_2.png)
4、查看指定 PID 的进程。
继续输入命令:
tasklist|findstr “9088”
回车执行该命令。
查看是哪个进程或者程序占用了 8081 端口,结果是:node.exe。
![Win10怎么禁用被占用的端口?](https://img.aspxhome.com/file/2023/4/50804_3.png)
结束进程。
强制(/F参数)杀死 pid 为 9088 的所有进程包括子进程(/T参数):taskkill /T /F /PID 9088
标签:
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
PPT 2010中边设计幻灯片边查看放映效果的方法
2022-01-31 16:47:41
win10日历在哪_ win10日历在哪打开教程
2022-05-12 05:50:22
![](https://img.aspxhome.com/file/2023/5/a314157_0s.jpg)
WPS表格技巧—如何制作倾斜式表头
2022-12-31 00:09:05
跨平台SSH客户端Termius for Mac使用教程
2023-05-18 12:30:06
![](https://img.aspxhome.com/file/2023/4/a210534_0s.jpeg)
Excel中进行单元格条件格式的操作方法
2022-04-12 17:19:21
微软严控Win10 S:不要轻易升级Windows 10 Pro
2022-03-21 21:42:59
![](https://img.aspxhome.com/file/2023/5/a313624_0s.jpg)
wps怎么设计格子蒙版效果的图片?
2023-05-31 10:23:15
![](https://img.aspxhome.com/file/2023/4/a166394_0s.jpg)
如何用密码保护 macOS 文件夹?
2023-08-02 03:02:23
![](https://img.aspxhome.com/file/2023/7/a204737_0s.jpeg)
Win10 Build 10154全新壁纸:海滩上奔跑的美女
2022-04-07 05:41:05
![](https://img.aspxhome.com/file/2023/28/a249460_0s.png)
wps表格如何设置小数点位数为两位
2023-05-26 11:44:44
快速清除Win8动态磁贴个人信息的操作方法
2023-07-19 02:28:45
![](https://img.aspxhome.com/file/2023/2/a288293_0s.jpg)
WPS怎么去掉上方和左边12345像尺子一样的度量?
2022-07-31 07:09:42
键盘失灵一键修复方法有哪些_键盘失灵一键修复方法介绍
2022-03-01 01:34:21
![](https://img.aspxhome.com/file/2023/3/a296269_0s.jpg)
CDR文件是什么?怎么在电脑中打开cdr文件?
2023-04-29 03:48:40
![](https://img.aspxhome.com/file/2023/6/a322561_0s.jpg)
Win10怎么开启5G WiFi行动热点?
2022-08-04 05:31:05
![](https://img.aspxhome.com/file/2023/29/a260324_0s.jpg )
wps页眉的设置在哪里
2022-11-27 21:25:36
![](https://img.aspxhome.com/file/2023/4/a171114_0s.png)
excel提取字符串中数字、中文、英文字符的自定义函数
2023-07-22 23:53:16
ppt怎么制作一次级别淡出效果的动画?
2023-02-28 20:27:56
![](https://img.aspxhome.com/file/2023/10/a346104_0s.jpg)
win10账户密码忘记了怎么办?win10账户忘记密码的解决方法?
2023-09-06 07:15:36
![](https://img.aspxhome.com/file/2023/4/47354_0s.jpg)
Win7旗舰版安装腾讯游戏失败怎么解决?
2023-12-04 11:03:38
![](https://img.aspxhome.com/file/2023/27/a229928_0s.jpg)