mqtt socket is close

从pomelo1.2.3升级到2.2.5后,使用pomelo stop或者pomelo list命令,console报错,报错信息是:

[2017-02-03 23:45:48.317] [ERROR] pomelo-admin - [MqttClient] mqtt socket is close, remote server host: 127.0.0.1, port: 3005
[2017-02-03 23:45:48.320] [INFO] pomelo-admin - [MqttClient] exit ...

标签: pomelo
markco 在 2-3 23:59发布 分享到 weibo
2 回复
#1 {1} fantasyni 2-5 21:48 回复

npm install -g pomelo 了没呢

joe001 3-19 19:01 回复

2.0版时,可以用

node app.js host=127.0.0.1 port=6050 serverType=chat id=chat-server-1
node app.js host=127.0.0.1 clientPort=3014 frontend=true serverType=gate id=gate-server-1

的方法一个个启动服务,现在2.2.5版只能

node app.js host=127.0.0.1 port=3005 serverType=master id=master-server-1

一下子启动所有服务,否则就会报 [MqttClient] exit ...
请问怎么办

#2 joe001 3-19 19:17 回复
node app.js host=127.0.0.1 port=4050 clientPort=3050 frontend=true serverType=connector id=connector-server-1

[2017-03-19 19:04:50.442] [INFO] pomelo - [/Users/aaa/Documents/chatofpomelo-websocket/game-server/node_modules/pomelo/lib/application.js] application inited: "connector-server-1"
[2017-03-19 19:04:50.762] [INFO] pomelo-admin - [ConsoleService] try to connect master: "connector", "127.0.0.1", 3005
[2017-03-19 19:04:50.790] [ERROR] pomelo-admin - [MqttClient] mqtt socket is error, remote server host: 127.0.0.1, port: 3005
[2017-03-19 19:04:50.791] [INFO] pomelo-admin - [MqttClient] exit ...
回到顶部