Mosquitto-Ubuntu 14.04快速安装问题解决
2015-12-11 13:39
405 查看
Mosquitto是一个轻量级的MQTT Broker,支持很多种系统。
下载与安装:http://mosquitto.org/download/
注意:由于客户端paho工程进展较快,目前需要使用最新的3.1.1版本的mqosuitto服务器才能连接,因此用Ubuntu内置库的mosquitto将无法正常访问。我就是因为这个莫名奇妙的原因,死活调试不通org.eclipse.paho.mqtt.embedded-c-1.0.0源码中示例,折腾了好几天。
安装最新的1.4以上版本的Mosquitto(适用于所有基于Debian的Linux ,如Ubuntu系列),步骤如下:
安装Paho基于Python的MQTT客户端:
下载与安装:http://mosquitto.org/download/
注意:由于客户端paho工程进展较快,目前需要使用最新的3.1.1版本的mqosuitto服务器才能连接,因此用Ubuntu内置库的mosquitto将无法正常访问。我就是因为这个莫名奇妙的原因,死活调试不通org.eclipse.paho.mqtt.embedded-c-1.0.0源码中示例,折腾了好几天。
安装最新的1.4以上版本的Mosquitto(适用于所有基于Debian的Linux ,如Ubuntu系列),步骤如下:
#!/bin/sh #To use the new repository you should first import the repository package signing key: wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key sudo apt-key add mosquitto-repo.gpg.key #Then make the repository available to apt: cd /etc/apt/sources.list.d/ #Then one of the following, depending on which version of debian you are using: sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list #sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list #Then update apt information: sudo apt-get update #And discover what mosquitto packages are available: sudo apt-cache search mosquitto #Or just install: sudo apt-get install mosquitto echo ========================================= echo MQTT Broker-Mosquitto Server Installed. echo =========================================
安装Paho基于Python的MQTT客户端:
相关文章推荐
- request_irq与request_threaded_irq
- UIButton的几种触发方式
- UITextView换行问题解决办法
- APUE学习之----进程通信fifo实现管道
- easyui-treegrid节点选择
- request内置对象的练习
- 响应式web设计之CSS3 Media Queries
- UITextView
- ios--- UISegment去边框颜色
- android UI之Shape详解
- UItableview正在滚动的时候进行操作容易出问题
- This virtual machine is configured for 64-bit guest operating systems.……
- UIStoryboard 初始化数据
- Ant学习- build.xml
- 在Servlet3.0中使用request.getParts()获取上传文件
- dispatch_async 与 dispatch_get_global_queue
- APUE学习第一章
- UIAlertView浅谈
- hdu4263 Red/Blue Spanning Tree
- iOS-上传错误之ERROR ITMS-90474-90475: iPad Multitasking support requires these orientations