版权声明:本文为CSDN博主 无、涯 原创文章,可以转载但请注明出处。联系方式:[email protected] 博客地址 https://blog.csdn.net/a704397849 https://blog.csdn.net/a704397849/article/details/88895009
mqtt客户端 mosquitto安装
-
环境:
centos 6.8
mosquitto版本:mosquitto-1.5.8 -
1 下载
官网: https://mosquitto.org/download/
网盘链接:https://pan.baidu.com/s/1So4Z9ElKB7DpxWZCUWvGuQ
提取码:xhb7 -
2 安装
本地解压上传到服务器上,目录结构如下:
make 之前,安装一些依赖包-
yum install libxslt
-
yum install docbook-style-xsl
find / -name docbook.xsl
将上图箭头所指的文件路径复制 替换 到man目录下的manpage.xsl文件中,如下:
修改mosquitto源码文件man文件夹下manpage.xsl文件,修改后如下:
-
yum -y install gcc gcc-c++ openssl-devel c-ares-devel libuuid-devel wget cmake
-
执行make
注: 如果make 失败, 根据提示修复后,先make clean ,然后再 make
-
参考:
https://www.cnblogs.com/shihuc/p/10095917.html
https://blog.csdn.net/woniu211111/article/details/62043814