Do the development of MQTT and record some learning processes.
Installation includes:
1, RPM Installation
2. Source code Installation
(i) Installation with RPM
Installation Environment Centos6.4
Download the Mosquitto RPM installation package from the link below: Click the Open link (http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-6/i686/)
To run the Install command:
[Root@local
original articles such as reprint, please indicate the source (http://blog.csdn.net/hui6075/).
https://blog.csdn.net/hui6075/article/details/79092318
Directory:Introduction to MQTT protocolMosquitto Bridge modeMosquitto Cluster model
Introduction to MQTT protocolMqtt is a set of application-layer Instant messaging protocols, defined by IBM for the environment of things, that provide a way of subscribi
AWS Free TierReprinted from: HTTPS://AWS.AMAZON.COM/CN/FREE/?SC_CHANNEL=PSSC_CAMPAIGN=ACQUISITION_CNSC_PUBLISHER=BAIDUSC _medium=cloud_computing_bsc_content=aws_esc_detail=%d1%c7%c2%ed%d1%b7awssc_category=cloud_ Computing_bsc_segment=367sc_matchtype=exactsc_country=cnThe AWS Free tier is designed to help you gain hands-on experience with AWS, which you can enjoy
MQTT is a subscription/publish-based IoT protocol.The Python test requires a sending and receiving process, a sending client and a receiving client, and if the two clients are working under the same topic, then the message can be exchanged.Server with "iot.eclipse.org" is good, to avoid building a server, and then the process can also run through.Send client code:Import paho.mqtt.client as Mqttimport paho.mqtt.publish as Publishidx = 0#往paho/temperatu
data into a disaster recovery service (such as a service for love) and restore to a local when needed– P2V Physical machines (for example, services with love numbers) to EC2 and restore to the cloud when needed– Replicate database data to RDS in the cloud (using MySQL, Oracle, SQL Server replication tools)
Enterprise implementation of cloud disaster preparedness can be "gradual" way
Simple Backup to recover data
Light (apply cold Backup)
Warm standby (Application run
"NPM Install module –save" not worknpm install *module* --saveDidn't generate a Package.json file?Need to be used after project directory initialization npm initIf you have already installed some module, you can use thenpm install --save Mosca Mqtt.jsMqtt.js using the WebSocket protocol
Server
Https://github.com/mcollina/mosca/wiki/MQTT-over-Websockets
Client
Https://github.com/mqttjs/MQTT.js#browserifyhttps://github.com/mqttjs/MQTT.j
Mqtt(Message Queuing telemetry transport, Message Queue telemetry transmission) is an instant messaging protocol developed by IBM. It is mainly used in the Internet of Things to implement the real message push function.
(1) mosquittoIs an implementation of the mqtt protocol. Open source acquisition: http://www.oschina.net/p/mosquitto
(2) Installation Method of Linux: http://hi.baidu.com/sunflower/item/c36
The way the internet pushes messages is very common, especially mobile Internet, mobile phone can receive a lot of push message every day, after research found that the principle of these push service is to maintain a long connection (or can not achieve real-time effect), but the normal socket connection to the server consumption is too large, So there's a lightweight, low-consumption protocol like MQTT to maintain long connections, so how to maintain
Description: MQTT is an instant Messaging protocol developed by IBM that is likely to be an important part of the Internet of things. The protocol supports all platforms, almost all connected items and external connections, and is used as a communication protocol for sensors and actuators (such as the Internet of homes via Twitter). Apache Apollo is a proxy server, which is developed on the basis of ACTIVEMQ, can support stomp, AMQP,
The following describes how to install Mosquitto and communicate using MQTT
1. Introduction of Mosquitto Warehouse and update
$sudo apt-add-repository Ppa:mosquitto-dev/mosquitto-ppa
$sudo apt-get Update
2. Install the Mosquitto package by executing the following command
$sudo Apt-get Install Mosquitto
3. Installing the Mosquitto Development Kit
$sudo Apt-get Install Libmosquitto-dev
4. Installing the Mosquitto client
$sudo Apt-get Install Mo
The raw data storage:s3
Using Amazon S3 with the aws.net API part 1:introduction
Using Amazon S3 with the aws.net API part 2:code Basics
Using Amazon S3 with the aws.net API part 3:code Basics Cont ' d
Using Amazon S3 with the aws.net API part 4:working with folders in code
Using Amazon S3 with the aws.net API part 5:s3 in Big Data
Using Amazon S3 with the aws.net API part 6:s3 in Big Data II
Data Storage Alternative:dynamodb
Using Amazon DynamoDb
I implemented the Beijing Yan Huang Ying of the BPM and OA system, the main goal is to control and manage business processes, accelerate Oracle JDE business front-end recording speed and make up for JDE in the process control deficiencies, to achieve BPM data and JDE seamless integration, after 3 months of development, Basically achieved this goal.But AWS itself is flawed, mainly in the form design and print format design, unable to achieve a flexible
The beans haven't touched AWS for a while, and have recently looked at the discovery that they can be managed with PowerShell and are excited to write an automated script to configure a highly available website practiced hand. But do not accumulate kuibu not even thousands of miles, first from the most basic things to look at.
Download and install the Awspowershell module
First, you need to download the corresponding module here.http://a
Tags: different config Unix bring pos description mes use meaning1. Why inter-process communication is requiredThe realization of complex business system has two kinds of relative realization idea, one is to do a chatty program, this program is all tube, completely realizes all functions of the business system, second, the complex system is decomposed into a series of function points, then corresponding to do multiple programs to jointly realize the overall function. The latter idea is the embod
command to generate the so file.
5. Move the so file to the Mosquitto directory (not the source directory, but the installed directory)
MV auth-plug.so/etc/mosquitto/
6. Edit the Mosquitto configuration file
Mosquitto-auth-plug has a variety of sample configuration files in the source code, you can use these files. For example, I use MySQL to verify that you can use the mosquitto-mysql.conf in the examples directory.
MV Mosquitto.conf Mosquitto.conf.origin (retains the original configur
Brief introductionTsung is a stress testing tool that can test servers including HTTP, WebDAV, PostgreSQL, MySQL, LDAP, and Xmpp/jabber. For HTTP testing, Tsung supportsHTTP 1.0/1.1, which contains a proxy-mode session record, supports GET, POST and PUT, and DELETE methods, supports cookies and basic WWW authentication, and also supports SSL.How the Tsung Works(1) Each virtual user of Tsung is a lightweight process of Erlang. There is a big difference between this and LoadRunner.(2) The virtual
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.