首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:在Mac上的EADDRINUSE -即使没有使用端口?

错误:在Mac上的EADDRINUSE -即使没有使用端口?
EN

Stack Overflow用户
提问于 2017-01-31 04:14:56
回答 3查看 826关注 0票数 1
代码语言:javascript
复制
Alexs-MacBook-Pro:build alexnordhausen$ gulp server:start
[21:11:22] Using gulpfile ~/Documents/Kanvasroom_Support/kanvasroom/build/gulpfile.js
[21:11:22] Starting 'env:dev'...
Application loaded using the "development" environment configuration

[21:11:22] Finished 'env:dev' after 6.25 ms
[21:11:22] Starting 'server:start'...
[21:11:22] Finished 'server:start' after 1.95 ms
[21:11:22] [nodemon] 1.11.0
[21:11:22] [nodemon] to restart at any time, enter `rs`
[21:11:22] [nodemon] watching: *.*
[21:11:22] [nodemon] starting `node --debug=5858 --trace-warnings server.js`
Server started, be sure the user content server is also running with gulp user-content
Live-build the client with gulp web:dist

Debugger listening on 127.0.0.1:5858
[Busy] Launching SocketCluster
Error: listen EADDRINUSE 127.0.0.1:5858
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Agent.Server._listen2 (net.js:1262:14)
at listen (net.js:1298:10)
at doListening (net.js:1397:7)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

没有任何幽灵进程在运行..。这是很好的工作,直到我做了一个新的npm安装整个项目。有什么想法?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2017-01-31 04:23:16

根据日志,您使用的是群集。您可能试图在同一个端口上侦听每个子进程,这将在启动第二个子进程后抛出错误。

票数 4
EN

Stack Overflow用户

发布于 2017-01-31 05:21:46

我可以从你的日志中看到:

您的主服务器启动于127.0.0.1:5858。

然后SocketCluster尝试从127.0.0.1:5858开始

因此,如果一个服务器已经是5858端口,那么其他服务器如何使用5858?

所以请换个端口来解决这个问题。

票数 0
EN

Stack Overflow用户

发布于 2017-01-31 05:11:06

当两个以上的应用程序使用一个portno时,就会出现此错误。

代码语言:javascript
复制
Use this command 
1) `netstat -tulpn` (Commans for show all the process on server) 
2)  then kill the process with the process number. like kill 2043
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41949536

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档