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
[email protected] tools]# find / -name docbook.xsl
/usr/share/sgml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl
3.搜尋到之後,将上面紅字中的位址修改到檔案man/manpage.xsl裡的對應位置
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyNzQTO0UjMyEjMxUDM4EDMy8CX0Vmbu4GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.jpg)
【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 添加軟連接配接的方式也可行