

Startup Dir: C:\Program Files (x86)\mosquittoĪrguments: -c "C:\Program Files (x86)\mosquitto\nf" Path: C:\Program Files (x86)\mosquitto\mosquitto.exe
#Run mosquitto on windows install#
#Run mosquitto on windows how to#
In my last post I covered how to run mosquitto via a command line using: mosquitto.exe -v -c nf For my case I just dropped it into my mosquitto installation directory: C:\Program Files (x86)\mosquitto I highly recommend placing the nssm.exe in a directory that is easy to get access to. NSSM is command line driven ( ), but has a built in GUI should you prefer it (I sure do). If you cannot go to Task Manager > Services and start/restart the Mosquitto server from there. If your server is running, you should be able to see the port 1883. Make sure that you download the nssm 2.24-101-g897c7ad version, and take either the 32-bit or 64-bit version depending on your system. If you are using Windows, open up a command prompt and type netstat -an. It is available here and was created by Iain Patterson and as far as I can tell is free to use non commercially. I stumbled upon a nifty application called NSSM (or the Non-Sucking Service Manager) while attempting to fix my mosquitto installation, and I am glad I did!

This post will cover re-creating this service, and showcase a really amazing application I found to make almost anything into a Windows service. Now somewhere during my initial install I managed to break the Mosquitto Broker service that was installed by default, and ended up removing it using an elevated command window and the SC delete NAME command. In my last post I ran over the required steps to get mosquitto up and running on a Windows environment. Menu Running Mosquitto as a Windows Service 08 June 2017 on Mosquitto, MQTT, Tutorial, Windows, Service
