当前位置:网站首页>Error: listen EADDRINUSE: address already in use 127.0.0.1:3000
Error: listen EADDRINUSE: address already in use 127.0.0.1:3000
2022-07-30 05:38:00 【小鸽子。】
运行时,会发现端口被占用。
报错如下:
Error: listen EADDRINUSE: address already in use 127.0.0.1:3000
之前尝试过网上很多方法都很复杂,这里偶然遇见一位兄台的解决方法简洁明了,故记录一下。
首先:
①打开cmd.
②输入命令:netstat -nao | findstr 3000,得知是什么占用了3000端口。
从图片可以知道PID为13352的进程占用了3000端口.
③输入命令 tasklist | findstr 13352 来查看被占据的这个端口在干什么。
从图中可以看出我的node.exe占据了3000端口。现在我要终止这个进程。
④输入命令 taskkill /pid 13352 ,来终止该进程。
可能会出现这种情况。那怎么办呢…
⑤那就强制终止!输入命令 taskkill/F /pid 13352
好了,端口释放成功!
我是借鉴了这位兄台的笔记,大家也可直接去查看他的文章。
https://blog.csdn.net/XH_jing/article/details/105535687
边栏推荐
- Countdown (Source: Google Kickstart2020 Round C Problem A) (DAY 88)
- curl (7) Failed connect to localhost8080; Connection refused
- Detailed MySQL-Explain
- 解决phpstudy无法启动MySQL服务
- 75. 颜色分类
- 108. 将有序数组转换为二叉搜索树
- 腾讯面试居然跟我扯了半小时的CountDownLatch
- Nacos 原理
- 从字节码角度带你彻底理解异常中catch,return和finally,再也不用死记硬背了
- Internet (software) company project management software research report
猜你喜欢

JVM之GC 调优基础知识(一)

瑞吉外卖项目:新增菜品与菜品分页查询

cnpm安装步骤

navicat无法连接mysql超详细处理方法

MySQL Soul 16 Questions, how many questions can you last?

ugly programmer

2022 SQL big factory high-frequency practical interview questions (detailed analysis)

CISP-PTE真题演示

Path dependence: the poor hard science to counter attack breakthrough

期末作业C#实现学生宿舍管理系统
随机推荐
The Golden Circle Rule: Deep Thinking Methods for Successful People
[Other] DS5
留念 · 大学时代最后的系统设计图
[GStreamer] The name of the plugin should match GST_PLUGIN_DEFINE
pwn-ROP
如何使用FirewallD限制网络访问
[Mysql] CONVERT函数
839. 模拟堆
MySQL的存储过程
This dependency was not found:
1475. 商品折扣后的最终价格
Nacos 原理
CISP-PTE Zhenti Demonstration
排列数字(DAY90)dfs
curl (7) Failed connect to localhost8080; Connection refused
【飞控开发基础教程9】疯壳·开源编队无人机-PWM(电机控制)
leetcode刷题
MySQL索引常见面试题(2022版)
应用实践 | Apache Doris 在百度智能云计费账单系统的应用实践
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements