【发布时间】:2014-02-04 10:01:20
【问题描述】:
我在 OSX 上运行陨石(带有一个测试项目,所以错误不应该是由于我写的任何东西),当我在默认端口 3000 上运行时出现以下错误。我检查过,没有其他进程正在访问该端口。
event.js:72 投掷者; \ 未处理的“错误”事件 错误:听 EADDRINUSE 在 errnoException: (net.js:901:11) 在 Server._listen2 (net.js:1039.14) 在听 (net.js:1061:10) 在 net.js:1135:9 在 dns.js:72:18 在 process._tickCallback (node.js:415:13) 在 Function.Module.runMain (module.js:499:11) 启动时 (node.js:119:16) 在 node.js:901:3
当我尝试在我知道被占用的端口上运行 mrt 时,我收到正确的错误消息(无法在端口 3001 上侦听),当我尝试在另一个未占用的端口上运行时,我收到: 错误:连接 ECONNREFUSED
有什么建议吗?
进一步更新:
我刚刚完全关闭/重新启动,选择了一个新的端口号 (3200),检查了没有任何东西在使用该端口或附近的任何东西,然后运行了 meteor --port 3200。我得到了:
I20140115-14:02:29.623(-7)? ----------Wed Jan 15 2014 14:02:29 GMT-0700 (MST) SQL Driver Starting --------
W20140115-14:02:29.639(-7)? (STDERR) Error: connect ECONNREFUSED
W20140115-14:02:29.639(-7)? (STDERR) at errnoException (net.js:901:11)
W20140115-14:02:29.640(-7)? (STDERR) at Object.afterConnect [as oncomplete] (net.js:892:19)
W20140115-14:02:29.640(-7)? (STDERR) --------------------
W20140115-14:02:29.641(-7)? (STDERR) at Handshake.Sequence (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:15:20)
W20140115-14:02:29.641(-7)? (STDERR) at new Handshake (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/mysql/lib/protocol/sequences/Handshake.js:9:12)
W20140115-14:02:29.641(-7)? (STDERR) at Protocol.handshake (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/mysql/lib/protocol/Protocol.js:41:50)
W20140115-14:02:29.642(-7)? (STDERR) at PoolConnection.Connection.connect (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/mysql/lib/Connection.js:73:18)
W20140115-14:02:29.642(-7)? (STDERR) at Pool.getConnection (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/mysql/lib/Pool.js:43:23)
W20140115-14:02:29.642(-7)? (STDERR) at app/server/dbinit.js:13:6
W20140115-14:02:29.642(-7)? (STDERR) at app/server/dbinit.js:79:3
W20140115-14:02:29.643(-7)? (STDERR) at /Users/lfrey/Desktop/Thesis/test-meteor-sql/.meteor/local/build/programs/server/boot.js:155:10
W20140115-14:02:29.643(-7)? (STDERR) at Array.forEach (native)
W20140115-14:02:29.643(-7)? (STDERR) at Function._.each._.forEach (/Users/a230073/.meteor/tools/09b63f1ed5/lib/node_modules/underscore/underscore.js:79:11)
【问题讨论】: