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,
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
default TcpListenerAdddefaultlistenerwhenlistenersisempty ();//obtained from user Configuration to tcplisteners bound to NettyStartfutures.addall (Starttcplisteners ( This. Listenerconfigurationservice.gettcplisteners ()));//obtained from user Configuration to tlstcplisteners bound to NettyStartfutures.addall (Starttlstcplisteners ( This. Listenerconfigurationservice.gettlstcplisteners ()));//obtained from user Configuration to websocketlisteners bound to NettyStartfutures.addall (Startwebsocke
Original address: http://blog.sina.com.cn/s/blog_6c762bb30101bkfp.html
First, download RSMBThe full name is Reallysmall Messagebroker. Click the address below to download https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid= d5bedadd-e46f-4c97-af89-22d65ffee070Second, start RSMB service after downloading, unzipThe directory structure is as follows.It can be seen from the above, because we download is suitable for all the platform download package, so there
Installed method Reference http://blog.csdn.net/Netown_Ethereal/article/details/22653125
Do MQTT development, record some learning process.
Installation includes:
1. RPM Installation
2, the source code installation
(i) the use of RPM installation
Installation Environment Centos6.4
Download the Mosquitto RPM installation package from the link below: Click on the Open link (http://download.opensuse.org/repositories/home:/oojah:/
Original link: http://blog.chinaunix.net/uid-25885064-id-3538994.htmlMQTT (MQ Telemetry Transport), Message Queuing Telemetry transport Protocol, lightweight Publish/Subscribe protocol, for low bandwidth, unreliable, or intermittent communication in some demanding environments. It is worth mentioning that MQTT offers three different quality messaging services:"At most once", message publishing relies entirely on the underlying TCP/IP network. Message
Implementation features
Add different Tlswebsocketlistener to pipeline based on different listener (TcpListener, Tlstcplistener, Websocketlistener, handler) of the User Configuration
Implementation steps
1, according to
SOURCE Blog Address: http://blog.csdn.net/pipinet123MQTT Exchange Group: 221405150 Implementation Capabilities
Add different Tlswebsocketlistener to pipeline based on different user-configured listener (TcpListener, Tlstcplistener,
1. Start-up vessel: Docker run-p 1883:1883-p 8161:8161-d leo/activemq
If there is no Docker, it is also possible to start activemq directly.
We just need to write publisher and Subscriber when the ACTIVEMQ is ready to start.
2. Need to add 2 maven
test Environment:
mqtt_client (Publish) QT 5.6.0 win10
mqtt_client (Subscribe) Ubuntu 12.04
mqtt_broker mosquitto ubuntu 12.0.4
the QT program was developed using the QMQTT library download address
Effect:
QT Client code: mainwindow.h
#ifndef
Baptism soul, practice python (2) -- python installation and configuration, python -- python
Install python and basic configurations:
Python Official Website: www.python.org
Open the website and download the corresponding version
Write Python,python, write Python programming, write Python programming, and write in Python for international students.I and write the team members are graduated from the domestic and overseas computer professional well-known institutions , are now employed in the domestic
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.