如何从错误中释放localhost:侦听EADDRINUSE [英] how to release localhost from Error: listen EADDRINUSE

查看:76
本文介绍了如何从错误中释放localhost:侦听EADDRINUSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试Windows 7上用nodejs编写的服务器 当我尝试在命令行中运行测试仪时,出现以下错误

i am testing a server written in nodejs on windows 7 and when i try to run the tester in the command line i get the following error

Error: listen EADDRINUSE
at errnoException (net.js:614:11)
at Array.0 (net.js:704:26)
at EventEmitter._tickCallback (node.js:192:40)

如何在不重新启动的情况下进行修复?

how can I fix it without rebooting?

推荐答案

这表示您正在尝试将服务器绑定到的地址.尝试另一个端口或使用该端口关闭程序.

It means the address you are trying to bind the server to is in use. Try another port or close the program using that port.

这篇关于如何从错误中释放localhost:侦听EADDRINUSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆