title: How do I stop the RabbitMQ server on localhost
body: <p>I installed RabbitMQ server on OS X, and started it on command line. Now, it is not obvious that how I should stop it from running? After I did:</p>
  
  <pre><code>sudo rabbitmq-server -detached
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Activating RabbitMQ plugins ...
  0 plugins activated:
  </code></pre>
  
  <p>That was it. How should I properly shut it down? In the document, it mentions using <code>rabbitmqctl(1)</code>, but it's not clear to me what that means. Thanks.</p>
  
  <p>Edit: As per comment below, this is what I get for running <code>sudo rabbitmqctl stop</code>:</p>
  
  <pre><code>(project_env)mlstr-1:Package mlstr$ sudo rabbitmqctl stop
  Password:
  Stopping and halting node rabbit@h002 ...
  Error: unable to connect to node rabbit@h002: nodedown
  
  DIAGNOSTICS
  ===========
  
  nodes in question: [rabbit@h002]
  
  hosts, their running nodes and ports:
  - h002: [{rabbit,62428},{rabbitmqctl7069,64735}]
  
  current node details:
  - node name: rabbitmqctl7069@h002
  - home dir: /opt/local/var/lib/rabbitmq
  - cookie hash: q7VU0JjCd0VG7jOEF9Hf/g==
  </code></pre>
  
  <p>Why is there still a 'current node'? I have not run any client program but only the RabbitMQ server, does that mean a server is still running?</p>