当前位置:网站首页>[node] the service port is occupied error: listen eaddinuse: address already in use::: 9000- how to close the port started by node
[node] the service port is occupied error: listen eaddinuse: address already in use::: 9000- how to close the port started by node
2022-07-25 05:54:00 【Uninstall engine】
Problem description
Record once node Problems encountered during project startup :koa2 After starting the project , Use ctrl+c Abort the code , But when running again, the sending port is occupied .
The error information is as follows :
Error: listen EADDRINUSE: address already in use :::9000
terms of settlement
The solution is to 9000 The program running on the port is killed .
1. function cmd:
【win】+ r ( function )--> cmd
2. Go to the specified directory
cmd Input in
cd c:\Windows\System32
3. You can view all ports to get PID
netstat -ano

4. You can also use the port to accurately locate and obtain PID
More convenient
netstat -ano|findstr 9000
Get the last column PID, here pid by 11588
5. Kill the running program
taskkill /pid 11588
If the execution must be forcibly terminated , add to /F Options
taskkill /F /pid 11588

6. Rerun
Run the program again, and the port occupation will not be displayed
边栏推荐
- Ffmpeg notes (I) fundamentals of audio and video
- School day (summer vacation daily question 2)
- Summer summary 2
- R language uses wilcox.test function to perform Wilcox signed rank test to obtain confidence interval of population median (set conf.level parameter to specify confidence level and size of confidence
- Sword finger offer 05. replace spaces
- HTB-Granpa
- 剖析kubernetes集群内部DNS解析原理
- Calculate BDP value and wnd value
- How to start if you want to be a product manager?
- (2022牛客多校)D-Link with Game Glitch(spfa)
猜你喜欢

(2022牛客多校)D-Link with Game Glitch(spfa)

C100: smallest hevc visual IOT MCU

idea常用10个快捷键

(牛客多校二)J-Link with Arithmetic Progression(最小二乘法/三分)

Ffmpeg notes (I) fundamentals of audio and video

HTB-Beep

(2022牛客多校二)K-Link with Bracket Sequence I(动态规划)

ROI pooling and ROI align
![Atof(), atoi(), atol() functions [detailed]](/img/5a/a421eab897061c61467c272f122202.jpg)
Atof(), atoi(), atol() functions [detailed]

Sword finger offer 36. binary search tree and bidirectional linked list
随机推荐
Atof(), atoi(), atol() functions [detailed]
VIM configuring golang development environment
(牛客多校二)J-Link with Arithmetic Progression(最小二乘法/三分)
剑指 Offer 45. 把数组排成最小的数
Difference between NPX and NPM
HTB-Optimum
(16) [system call] track system call (3 rings)
2020icpc Jiangxi warm up e.robot sends red packets (DFS)
Sword finger offer 05. replace spaces
Vim配置Golang开发环境
Mechanism and principle of multihead attention and masked attention
EOL offline sequence based on iso13209 (Otx)
Sword finger offer 54. the k-th node of the binary search tree
Big talk · book sharing | Haas Internet of things device cloud integrated development framework
Please stop using system The currenttimemillis() statistical code is time-consuming, which is really too low!
npx和npm区别
Microservice configuration center Nacos
(14)[驱动开发]配置环境 VS2019 + WDK10 写 xp驱动
y76.第四章 Prometheus大厂监控体系及实战 -- prometheus进阶(七)
线性代数(三)