eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.93k stars 2.37k forks source link

Multiple mosquitto version 2.0.10 services running as localhost on windows 10 #2246

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello, i like to setup my windows 10 to serve two mosquitto broker at the same time. How can i achive that. There must be two instances of mosquitto running in parallel. At service start mosquitto will check for config file and startup, how can i write two config files and tell mosquitto to startup taking both for each of the two brokers.

Thanks in advance

ralight commented 2 years ago

Way out of date, but this will be possible in version 2.1.

Each service expects to load a config file from a path based on the name of the executable. So if you have mosquitto_1884.exe as the exe name, it expects to load %MOSQUITTO_1884DIR%/mosquitto.conf. Any non-alphanumeric characters in the exe name are replaced with .