转载: http://www.xappsoftware.com/wordpress/2014/10/30/install-mosquitto-on-mac-os-x/
Install mosquitto on mac os x
Mosquitto is a BSD licensed message broker that implements the MQ Telemetry Transport protocol versions 3.1 and 3.1.1.
Mosquitto is a lightweight broker and it is available in binary form for most used platforms like Windows, Linux and Mac OS X.
In a previous post I shown how to install mosquitto, on Raspberry Pirunning raspbian, from source code.
On Mac OS X you could have some error because you should build all the environment for compiling.
Instead you could use brew.
Install brew.
from a terminal run the following commands:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ brew prune
Install mosquitto from brew:
$ brew install mosquitto
Prepare mosquitto for launchd
$ ln -sfv /usr/local/opt/mosquitto/*.plist ~/Library/LaunchAgents
Run mosquitto
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist
Now let’s try the broker, in the terminal launch the subscriber client:
$ mosquitto_sub -h 127.0.0.1 -t topic
In another terminal launch the publisher client
$ mosquitto_pub -h 127.0.0.1 -t topic -m "Hello world!"
in the first terminal you should see the Hello world! message.
Gg1
相关推荐
苹果MAC OS X Mavericks 10.9.5 (13F34) DMG文件
Mac OS X Install DVD.dmg
Mac OS X10.6.3 Snow Leopard系统 中文版完整安装盘 下载地址连接
OSInstall(MBR) OSInstall.mpkg(10.10.DP1.14A238x) AMD平台安装Mac OS X 10.6.3 替换文件
mac10.8.2OSInstall(MBR) OSInstall.mpkg
MQTT服务器mosquitto-2.0.14-install-windows-x64.exe
OSInstall及OSInstall.pkg破译文件
启动Mac OS X Install DVD安装之后,首先是选择操作系统语言,选择简体中文点击下一步开始安装,首先把之前分配好的大于20+GB的硬盘空间转变成HFS+分区,打开Mac OS X安装器菜单栏,打开“实用工具”—>“磁盘工具”...
Mac_OS_X_Lion_10_7_VMware下载种子.
用transmac恢复到U盘即可安装
mac 山狮迅雷种子文件,100%能用,好不容易找到的!支持一下!
透过种子下载的文件格式为dmg,网上有大量的教程是使用dmg安装mac os x系统的
光盘镜像文件,下载刻盘安装,如果不能下载或需要U盘版的可以联系我供种
具体如何安装请见:http://blog.zhaojie.me/2010/09/how-to-install-mac-os-x-snow-leopard-on-virtualbox.html 希望对你有用。 请注意:由于CSDN限制我只能上传小于15MB的文件,所以我使用“好压软件”压缩成.7z...
BT 文件 OS X 10.8 Install DVD.torrent
The OSInstall&OSInstall.mpkg to Mac OS X10.6.3 X86 for MBR 修改过后的,用于MAC OS X 10.6.3安装于PC
光盘镜像文件,下载刻盘安装,如果不能下载或需要U盘版的可以联系我供种
[]Demonoid.me[]-Mac_OS_X_10_7_Lion_bootable_DVD_for_Intel_PCs Mac OS 10.7 for PC 安装DVD光盘镜像
得先安装VMware Workstation8.0以上版本,在退出VMware Workstation运行前提下:在Windows 7系统中,以管理员身份运行windows/install.cmd;...正确执行以上操作后,VMware Workstation会增加Mac OS X选项。
笔者直接下载的单独的dll文件测试成功 点击mosquitto-1.6.4-install-windows-x64.exe安装文件