Since the follow-up system is to be said around Mqtt,mosquitto,eclipse PAHO, then it is necessary to give you a brief talk about the basic use of mosquitto, sweep blind. Give us a brief introduction of how Mosquitto is installed and started under the window System.
(1) Download the installation package
First login to Mosquitto's official website (http://mosquitto.org/), to the address below (http://mosquitto.org/download/) to download an installation package, we take the window system as an example. Download Mosquitto-1.4.2-install-win32.exe , by the way, if the economic conditions allow, you can donate some money for this software, which generally has a Visa card or master credit card donation channel.
(2) The installation method and the normal window System executable file installation method is no different, the general default installation can be.
(3) After the default installation, all programs are installed in this directory, C:\Program Files (x86) \mosquitto.
If you do not want to perform the installation program on other operating systems, c:\program Files (x86) \mosquitto This folder is copied to any path,
All can be used. For example, for the convenience of input, I copy it to d:\mosquitto, of course, can also be directly in the c:\program Files (x86) \mosquitto This folder inside the operation.
(4) Enter d:\mosquitto, enter the following command,
4.1 cd d:\mosquitto
4.2 mosquitto -p 1883-v
can start mosquitto service, which uses the configuration file provided by default, if 1883 is occupied, replace-p after the parameter to another port, for example, 1885
mosquitto 's specific use commands are as follows.
Mosquitto [-c config file] [-D |--daemon] [-p port number] [-v]
To specify the way to start, where the-C followed by the start Mosquitto can be adjusted parameters, such as whether to turn on Basic authentication, what the port is, SSL unidirectional and bidirectional authentication configuration and so on.
-D indicates that Mqtt Mosquitto will run in the background.
-P represents the current Mosquitto service instance after it is started, its listening port number, this configuration overrides [-C config file] in the specified configuration file
-V Code debug mode (verbose) to output more information
Because the author's 1883 Port is already occupied, so use 1885 port
Congratulations, mosquitto server is already installed and running.
[2] mqtt,mosquitto,eclipse Paho----Mosquitto use of literacy