mosquitto
mosquitto copied to clipboard
Error: Connction refused | A clean way to uninstall mosquito ?
Hello guys, So for a school project I've installed Mosquitto on a 11Debian. I've messed up with some files I think.. Is there a way to fully uninstall mosquitto from the Debian, a clean way I mean with nothing left from mosquitto on the Debian?
Or maybe can you guys help me with this error :
Error: Connection refused
The "Connection refused" error happens when I try too create a mosquitto_sub on localhost.
I've tried to create one with this command
mosquitto_sub -t newtopic/test -h test.mosquitto.org
And this is perfectly working. I can publish messages.
But whenever I use
mosquitto_sub -h localhost - t newtopic/test
I got the Connection refused Error.
Maybe an obvious question, before running that command, did you run
mosquitto
? That should run the broker in the foreground with quite a lot of debug output. Once that's running, the sub and pub command-line tools should work.
To get it working on a real network interface, you'll need at least a minimal config file:
listener 1883
allow_anonymous true