1. Download Java the JDK installation package (apollo dependent Java environment)
Download Link: http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Install java JDK
After the installation is set JAVA_HOME environment variable
3. Download apollo installation package
Download: http://archive.apache.org/dist/activemq/activemq-apollo/1.7.1/
4. extract the apollo installation package (free installation, choose their own path and I am using the D: \ the MQTT )
It should be noted, and unzip the file containing apache-apollo-1.7.1 folder name can not have Chinese or the space will be mentioned later something goes wrong.
5. Create a proxy (create broker)
Use dos command line enter D: \ MQTT \ apache-apollo -1.7.1 \ bin directory
Execute the command "apollo.cmd create mybroker"
create mybroker means creating a name for the proxy instance mybroker
6. Run Agent (run broker)
There are two ways to run the agent, respectively,
1. Foreground
a. Run console application (cmd.exe)
b.dos command line into the proxy instance where the installation directory: D: \ MQTT \ apache-apollo-1.7.1 \ mybroker \ bin
c. Run apollo-broker.cmd run,
Note: The foreground Disadvantages: console programs should have been hung, can not quit.
2. background
a.dos command line into the proxy instance where the installation directory: D: \ MQTT \ apache-apollo-1.7.1 \ mybroker \ bin
b. Run apollo-broker-service.exe install
. C Start apollo background service, and start the apollo find in "My Computer -> Services> Right - -> Management"
7. Log management background
URL: http: //127.0.0.1: 61680 / or https://127.0.0.1:61681
Default Account: admin Password: password
Configure tcp to the computer ip address:
When the TCP listening success: you can use mqtt client connected
Mqtt client configuration connected as follows:
Use as follows: