Springboot integrated MQTT-build apollo server (Windows)

Apache Apollo is a proxy server that can support AMQP, MQTT, SSL and other protocols.

To put it bluntly, it is a publish and subscribe center. The sender sends data to the publish and subscribe center, and the recipient obtains data from the publish and subscribe center, thereby pushing the message. Apollo is the role of the message relay station.

apollo download path

1. Download the resource package of apollo

Insert picture description here
The example uses the apache-apollo-1.7.1-windows-distro compression package

2. Install apollo

1. Enter the bin directory under the Dos window and execute apollo create center D: \ software \ ActiveMQ \ center. This step is to create a virtual host named center ; D: \ software \ ActiveMQ \ center in the command refers to the location where the virtual machine is installed.

2. Continue to enter D: \ software \ ActiveMQ \ center \ bin (the installation path of the actual virtual machine) in the Dos window, and execute apollo-broker run. The following screenshot appears indicating that the apollo service started successfully.
Insert picture description here
Use http://127.0.0.1:61680 to open the management interface, the default account is admin password password.
Insert picture description here

3. Configure apollo

The apollo service has been started, but many of the actual development does not use the default data, such as account number, password, and port, which requires us to configure.

1. Configure account password
Insert picture description here
As shown in the figure above, the configuration file that controls account information is controlled by groups.properties (account) and users.properties (password) under the etc path under the virtual machine installation path.
Insert picture description here
groups.properties is used to add users.
Originally:
admins = admin
add root users:
admins = admin | root (in the middle | separate)
Insert picture description here
users.properties is used to set the user's account password
Originally:
admin = password

Add root user:
admin = password
root = 111111 (new line)

2. Configure the management port
Insert picture description here
Only need to modify the port at the mark, and save it after the modification.

3. Configure the long-connected port.
Insert picture description here
Modify the port at the mark, and save it after the modification.

Published 34 original articles · Like 34 · Visitors 60,000+

Guess you like

Origin blog.csdn.net/qq_19154605/article/details/105319867