Mosquitto MQTT message broker on Ubuntu/debian built from source

Source: Internet
Author: User

What is Mosquitto?

Check this out!

http://mosquitto.org

What is MQTT?

Check this out.

http://mqtt.org

sudoApt-getInstallLibc-ares-dev Libc-ares2-ywget-C http://mosquitto.org/files/source/mosquitto-1.3.5.tar.gzTar-XZVF mosquitto-1.3.5.Tar. gz-c/usr/local/SRCCD/usr/local/src/mosquitto-1.3.5sudo  Makesudo  Make Install
# If you can not find the Libmosquitto.so.1
sudo ln-s/usr/local/lib/libmosquitto.so.1/usr/lib/libmosquitto.so.1
sudo ldconfig

Then try this:

Step 1.

Start the Mosquitto server

 for  More information

Here is another one which are in Chinese and understanding consuming. It's From here:

http://blog.csdn.net/xukai871105/article/details/39252653

Step 2.

Subscribe a topic

Step 3.

Publish a message to a topic

Explain:

3rd-party Libs:

http://mosquitto.org/documentation/

One good in Python mostly:

http://mosquitto.org/documentation/python/

Download that from Https://pypi.python.org/pypi/paho-mqtt

Mosquitto MQTT message broker on Ubuntu/debian built from source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.