Linux上安裝Mosquitto集羣(CentOS)

Mosquitto集羣

在Mosquitto集羣中,客戶端可以在任何節點上訂閱主題,也可以在任何節點上發佈消息,集羣會保證消息按需轉發到正確的節點。
爲了均衡負載及避免單點故障,Mosquitto集羣實現爲完全去中心化、自治的方式。

編譯安裝

> git clone https://github.com/hui6075/mosquitto-cluster.git 

> cd mosquitto-cluster && vi config.mk 

# WITH_BRIDGE:=yes
WITH_CLUSTER:=yes
 make && make install 

Q&A

【通過命令查找文件 docbook.xsl,在本機中也沒有發現,因此基本可以確定是找不到這個文件所致:】

1.安裝docbook-style-xsl
yum -y install docbook-style-xsl

2.查看文件docbook.xsl被安裝到了哪裏:
find / -name docbook.xsl
root@localhost tools]# find / -name docbook.xsl
/usr/share/sgml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl

3.搜索到之後,將上面紅字中的地址修改到文件man/manpage.xsl裏的對應位置

 

【handle_connect.c:33:25: fatal error: uuid/uuid.h: No such file or directory】

yum install libuuid-devel

【make[1]: xsltproc: Command not found】

yum install libxslt

【mosquitto_sub: error while loading shared libraries: libmosquitto.so.1: cannot open shared object file: No such file or directory】

find / -name "libwebsockets.so.8"
vim /etc/ld.so.conf.d/liblocal.conf
/usr/local/lib64
/usr/local/lib

ldconfig
//執行ln -s 添加軟連接的方式也可行

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章