emqx启动异常,查看日志logs/emqx.log.x 报错如下
如图看到 http:management 端口占用.
解决
emq2.0版本:找到etc/emqx.conf 对应Listener 配置位置增加:
## HTTP Management API Listener
listener.api.mgmt = 127.0.0.1:8080
emq3.0版本:找到etc/plugins/emqx_management.conf
修改配置项:
## HTTP Listener
management.listener.http = 8081
重新启动 emqx
root@dell:/usr/local/devops_emqx/emqx# ./bin/emqx start &
[1] 12668
root@dell:/usr/local/devops_emqx/emqx# ./bin/emqx_ctl status
Node 'emqx@127.0.0.1' is started
emqx 4.2.5 is running
[1]+ Stopped ./bin/emqx start
成功
网友评论