Mac OSX uninstall Mosquitto

370 views
Skip to first unread message

Bilal Ashraf

unread,
Mar 2, 2020, 2:18:58 AM3/2/20
to MQTT
Hi Guys, 

I have install mosquitto broker on Mac OSX using home brew and now i need to stop or uninstall it but its not doing so. I have uninstalled it using home brew, removed it and tried "Killall" and pkill and Kill -A but it respawns itself again. Please help me uninstall or stop it so remove it completely from my system. 

Ameya Lokare

unread,
Mar 4, 2020, 12:20:28 AM3/4/20
to MQTT
 It's likely that you have it setup as an OS X background service - have you tried "brew services stop mosquitto" and then "brew services cleanup" ?

Bilal Ashraf

unread,
Mar 4, 2020, 3:02:52 AM3/4/20
to MQTT
I have tried this, but no use. So in the command below, you can see that mosquitto is restarted again with different PID, I have also tried pkill and killall but the behaviour is same. 

$ ps -A | grep mosquitto                                                                                                                                                                                                                   
39310 ttys001    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn mosquitto

$ brew services stop mosquitto                                                                                                                                                                                            
Error: Service `mosquitto` is not started.

$ ps -A | grep mosquitto                                                                                                                                                                                                                       
39630 ttys001    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn mosquitto

Thomas

unread,
Mar 4, 2020, 8:16:19 AM3/4/20
to MQTT
Hi Bilal,

Looks like you are getting the grep command in you ps - A | grep  mosquitto. When I run it I get:

ps -A | grep mosquitto
70189 ttys008    0:00.00 grep mosquitto

Have a look at whether port 1883 is open? If not I'd say that mosquitto is not running and probably uninstalled as well.

Thomas

Bilal Ashraf

unread,
Mar 4, 2020, 2:55:26 PM3/4/20
to mq...@googlegroups.com
Well i have tried, the ports 1883 is free but not port 1884.  I have deployed mosquitto packed in docker but when i try to bind the port of docker it does not do so. Now i am thinking that it might be something else.

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mqtt/a93d0652-22b5-4c26-91d3-3a803386fd06%40googlegroups.com.
--
-- 
Best Regards | Mit freundlichen Grüßen |تفضلوا بقبول فائق الإحترام والتقدير | ystävällisin terveisi | 宜しく


Bilal Ashraf
PK :+92 321 5041775

Reply all
Reply to author
Forward
0 new messages