简体   繁体   中英

Mosquitto mqtt on ubuntu for windows

I'm trying to setup a mosquitto mqtt server on windows using bash on ubuntu on windows because the code I'm try to run is that of Linux but I've been getting this error. I've surfed through the internet for days now and still haven't found a solution,

1588558652: Warning: Mosquitto should not be run as root/administrator.
1588558652: mosquitto version 0.15 (build date 2018-09-05 15:14:14+0000) starting
1588558652: Opening ipv4 listen socket on port 1883.
1588558652: Opening ipv6 listen socket on port 1883.
1588558652: Error: Address already in use

Mind you I'm not a coder so I'm new to all of this. Thanks for helping...

The error is telling you what is wrong: Some other program already has port 1883 open and is using it....thus Mosquitto can't use it.

You can find out which program has port 1883 open by using something like this (Not sure if it works on all Ubuntu's, but works on my v16.04.6 LTS):

netstat -pan | grep 1883

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM