Help getting started

Asked by Terry Yoder

Mac OSX v. 10.7.5

Used Homebrew to install mosquitto: "brew install mosquitto"

Installation appeared successful.

Trying to run broker like this from the command line: mosquitto -p 8000

Response: -bash: mosquitto: command not found

Questions: Where exactly is Mosquitto installed?
I'm assuming I need to add something to my PATH - what do I need to add?

Thanks,
Terry

Question information

Language:
English Edit question
Status:
Answered
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Terry Yoder (tkyoder93) said :
#1

I'm able to double-click the executable from Mac Finder (/usr/local/Cellar/mosquitto/1.3.1_1/sbin/mosquitto.exe)

That launches Mosquitto with the default settings (port 1883) and I am able to publish and subscribe successfully (yay!)

I edited the config file at /usr/local/Cellar/mosquitto/1.3.1_1/mosquitto/mosquitto.conf
in order to specify a different port...

# Port to use for the default listener.
#port 1883
port 8000

Saved the conf file and restarted Mosquitto....still using 1883.

Anything I'm missing here?

Revision history for this message
Roger Light (roger.light) said :
#2

Hi Terry,

I'm not sure about anything to do with the mac brew install of
mosquitto, but it sounds like it isn't using the config file.
Mosquitto doesn't load a config file unless you tell it to.

Cheers,

Roger

On Sun, May 4, 2014 at 4:16 PM, Terry Yoder
<email address hidden> wrote:
> Question #248135 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/248135
>
> Terry Yoder gave more information on the question:
> I'm able to double-click the executable from Mac Finder
> (/usr/local/Cellar/mosquitto/1.3.1_1/sbin/mosquitto.exe)
>
> That launches Mosquitto with the default settings (port 1883) and I am
> able to publish and subscribe successfully (yay!)
>
> I edited the config file at /usr/local/Cellar/mosquitto/1.3.1_1/mosquitto/mosquitto.conf
> in order to specify a different port...
>
> # Port to use for the default listener.
> #port 1883
> port 8000
>
> Saved the conf file and restarted Mosquitto....still using 1883.
>
> Anything I'm missing here?
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.

Can you help with this problem?

Provide an answer of your own, or ask Terry Yoder for more information if necessary.

To post a message you must log in.