mosquitto/README-windows.txt

72 lines
2.5 KiB
Plaintext
Raw Normal View History

2015-03-02 22:12:50 +00:00
Mosquitto for Windows
=====================
2018-08-16 12:24:07 +00:00
Mosquitto for Windows comes in 32-bit and 64-bit flavours.
2015-03-02 22:12:50 +00:00
2018-08-16 12:24:07 +00:00
In both cases, the dependencies are not provided in this installer and must be
installed separately in the case that they are not already available.
2015-03-02 22:12:50 +00:00
Capabilities
------------
2016-07-05 20:38:57 +00:00
Some versions of Windows have limitations on the number of concurrent
2018-08-16 12:24:07 +00:00
connections, set at approximately 2048 connections depending on the version of
Windows you are using.
2015-03-02 22:12:50 +00:00
Websockets
----------
2018-08-16 12:24:07 +00:00
The broker executables provided in the installers have Websockets support
through a statically compiled version of libwebsockets and is being distributed
under the Static Linking Exception (Section 2) of the License. As a result, the
content is not subject to the LGPL 2.1.
2015-03-02 22:12:50 +00:00
Please note that on Windows, libwebsockets limits connections to a maximum of 64 clients.
2018-08-16 12:24:07 +00:00
Library Thread Support
----------------------
2015-03-02 22:12:50 +00:00
2018-08-16 12:24:07 +00:00
libmosquitto on Windows is currently compiled without thread support, so
neither of mosquitto_loop_start() nor "mosquitto_pub -l" are available.
2015-03-02 22:12:50 +00:00
2018-08-16 12:24:07 +00:00
A better solution that the old pthreads-win32 is being looked into, so support
will return in the future. If you need thread support, the code still supports
it just fine. Support has been dropped to simplify installation.
2015-03-02 22:12:50 +00:00
2018-08-16 12:24:07 +00:00
Dependencies
------------
2015-03-02 22:12:50 +00:00
* OpenSSL
Link: http://slproweb.com/products/Win32OpenSSL.html
2018-08-16 12:24:07 +00:00
Install "Win32 OpenSSL 1.1.0* Light" or "Win64 OpenSSL 1.1.0* Light"
Required DLLs: libssl-1_1.dll, libcrypto-1_1.dll or libssl-1_1-x64.dll, libcrypto-1_1-x64.dll
2015-03-02 22:12:50 +00:00
2018-08-16 12:24:07 +00:00
Please ensure that the required DLLs are on the system path, or are in the same directory as
the mosquitto executable - usually C:\Program Files (x86)\mosquitto or C:\Program Files\mosquitto.
2015-03-02 22:12:50 +00:00
Windows Service
---------------
2018-08-16 12:24:07 +00:00
If you wish, mosquitto can be installed as a Windows service so you can
start/stop it from the control panel as well as running it as a normal
2015-03-02 22:12:50 +00:00
executable.
2014-05-07 22:27:00 +00:00
2018-08-16 12:24:07 +00:00
When running as a service, the configuration file used is mosquitto.conf in the
directory that you installed to.
If you want to install/uninstall mosquitto as a Windows service run from the
command line as follows:
C:\Program Files\mosquitto\mosquitto install
C:\Program Files\mosquitto\mosquitto uninstall
Logging
-------
If you use `log_dest file ...` in your configuration, the log file will be
created with security permissions for the current user only. If running as a
service, this means the SYSTEM user. You will only be able to view the log file
if you add permissions for yourself or whatever user you wish to view the logs.