Linux上安装Mosquitto集群(CentOS) - Go语言中文社区

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 添加软连接的方式也可行

 

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_35928732/article/details/96139204
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-06-06 09:38:53
  • 阅读 ( 1449 )
  • 分类:Linux

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢