• MQTT 在 mac 上搭建


    http://blog.csdn.net/YAJUN0601/article/details/41981399

    MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios. It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receive

    开源版本:

    http://mosquitto.org/download/

    $ brew install mosquitto

    ==> Installing dependencies for mosquitto: c-ares, openssl

    ==> Installing mosquitto dependency: c-ares

    ==> Downloading http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz

    ######################################################################## 100.0%

    ==> ./configure --prefix=/usr/local/Cellar/c-ares/1.10.0

    ==> make install

    �  /usr/local/Cellar/c-ares/1.10.0: 57 files, 540K, built in 2.0 minutes

    ==> Installing mosquitto dependency: openssl

    ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j.yosemite.bottle.tar.gz

    ######################################################################## 100.0%

    ==> Pouring openssl-1.0.1j.yosemite.bottle.tar.gz

    ==> Caveats

    A CA file has been bootstrapped using certificates from the system

    keychain. To add additional certificates, place .pem files in

      /usr/local/etc/openssl/certs

    and run

      /usr/local/opt/openssl/bin/c_rehash

    This formula is keg-only, which means it was not symlinked into /usr/local.

    Mac OS X already provides this software and installing another version in

    parallel can cause all kinds of trouble.

    Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

    Generally there are no consequences of this for you. If you build your

    own software and it requires this formula, you'll need to add to your

    build variables:

        LDFLAGS:  -L/usr/local/opt/openssl/lib

        CPPFLAGS: -I/usr/local/opt/openssl/include

    ==> Summary

    �  /usr/local/Cellar/openssl/1.0.1j: 431 files, 15M

    ==> Installing mosquitto

    ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mosquitto-1.3.5.yosemite.bottle.tar.gz

    ######################################################################## 100.0%

    ==> Pouring mosquitto-1.3.5.yosemite.bottle.tar.gz

    ==> Caveats

    mosquitto has been installed with a default configuration file.

    You can make changes to the configuration by editing:

        /usr/local/etc/mosquitto/mosquitto.conf

    Python client bindings can be installed from the Python Package Index:

        pip install mosquitto

    Javascript client has been removed, see Eclipse Paho for an alternative.

    To have launchd start mosquitto at login:

        ln -sfv /usr/local/opt/mosquitto/*.plist ~/Library/LaunchAgents

    Then to load mosquitto now:

        launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist

    Or, if you don't want/need launchctl, you can just run:

        mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf

    ==> Summary

    �  /usr/local/Cellar/mosquitto/1.3.5: 26 files, 632K

  • 相关阅读:
    报表中的图形是怎么做出来的?如何在其中实现地图?
    多维分析的本质计算是什么?能做什么又不能做什么?
    报表工具对比选型系列用例——多源分片报表
    报表工具怎样适应移动端?
    报表工具怎样适应移动端?
    互联网技术部门该如何管理
    更好用 更简单的Java缓存框架 jscache
    古人是怎么排行
    Spark ML 机器学习之Word2Vec
    Spark ML之高级数据源
  • 原文地址:https://www.cnblogs.com/bluealine/p/8624017.html
Copyright © 2020-2023  润新知