原文参考,加入了部分对报错的处理(黄底部分):http://xiangcun168.blog.51cto.com/4788340/1923607
配置两台主机hosts
192.168.0.10 s1.emqtt.io192.168.0.20 s2.emqtt.io
安装配置(s1.emqtt.io):
安装依赖包 # yum install -y lksctp-tools 安装
报错1:采用rpm包安装时报错file /etc/init.d from install of emqttd-2.2-1.el6.x86_64 conflicts with file from package chkconfig-1.3.49.3-2.el6_4.1.x86_64
解决:采用源码安装
# unzip emqttd-centos6.8-v2.1.2.zip #cd emqttd#vi etc/emq.confnode.name = emqttd@s1.emqtt.io或node.name =
emqttd@192.168.0.10
同理配置s2.emqtt.io,分别启动两台节点
启动# bin/emqttd startemqttd 2.1.2 is started successfully!EMQ 消息服务器进程状态查询:# ./bin/emqttd_ctl statusNode ‘emqttd@s1.emqtt.io‘ is startedemqttd 2.1.2 is running