To start the Mosquitto service, open up Windows command line by clicking Start on the Taskbar, typing in cmd and pressing Enter. Navigate to where you installed Mosquitto. By default it will be located in C: Program Files (x86) mosquitto as shown on the picture below. After reinstalling check the services to see if Mosquitto is running as a service. Then use the command netstat -an in command prompt. That will show the active connection and its status.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jun 23, 2016 • edited
edited
How do I create Mosquitto service from an Windows installer I am authoring ? The service was created, but fails to start. The Windows event log (under error) lists the reason: Followed by another another error event: I am able to run the mosquitto on the Windows command line without any issues. Please let me know how to create and start the Mosquitto service. |
commented Jun 26, 2016
You can install the service with The service expects the |
commented Jun 29, 2016
Thanks. I am able to create the service. If i install the Mosquitto files thru the Windows installer package, the service runs fine. Please list all the steps the installer is doing so I can incorporate the same in my installer. |
commented Jun 30, 2016
You can see the installer script at https://github.com/eclipse/mosquitto/blob/master/installer/mosquitto.nsi The relevant parts are: WriteRegExpandStr ${env_hklm} MOSQUITTO_DIR $INSTDIR This sets the MOSQUITTO_DIR environment variable to the installation directory - both mosquitto.exe and mosquitto.conf must be in this directory. This ensures the environment sees the new variable. This runs |
commented Dec 8, 2016
I believe that this can be closed now, if you disagree please reopen and add more information. |
commented Dec 8, 2016
… ________________________________From: Roger Light <[email protected]>Sent: Thursday, December 8, 2016 1:49 PMTo: eclipse/mosquittoCc: Gupta, Neil; AuthorSubject: Re: [eclipse/mosquitto] Create Mosquitto service manually on Windows (#193)I believe that this can be closed now, if you disagree please reopen and add more information.-You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub<#193 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ATL53k0-X0L6gIIr9SuZBpOeAutlP0Bdks5rGHt7gaJpZM4I9UVB>. |
commented Sep 7, 2018
I am not sure if somebody is still monitoring this. I just installed mosquitto on a Win10 machine. I downloaded the install package a few hours ago. The broken runs fine when I run it from the command prompt. The service entry is not created not even after I run 'mosquitto install'. It just returns to the command prompt after a few seconds without any message. I checked and the MOSQUITTO_DIR environment is correctly set. |
referenced this issue Oct 4, 2018
OpenInstalling mosquitto as a service on Windows #980
commented Dec 5, 2018
@nygma2004 A bit late, sorry I didn't see this. Are you running |
commented Dec 5, 2018
Yes, I have tried all possible combination. I am using a workaround at the moment, I still need to test what was mentioned somewhere to replace the log folder names with the 8.3 version, like instead of 'Program Files' 'PROGRA~1' or similar. |