Installing Mosquitto on MacOS
Mosquitto is installed via homebrew
If you don't have homebrew already:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Mosquitto:
brew install mosquitto
To start a mosquitto broker:
mosquitto
If you get command not found run the following and restart console:
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
Homebrew installs the broker, client binaries in:
- /usr/local/sbin/mosquitto
- /usr/local/opt/mosquitto/bin/mosquitto_pub
- /usr/local/opt/mosquitto/bin/mosquitto_sub
The default conf file is in -c /usr/local/etc/mosquitto/mosquitto.conf