rabbitmqadmin [Errno 111] Connection refused
<p>So I keep getting "connection refused" from rabbitmqadmin. I'm running debian 7 on a vm as root user. I installed rabbitmq-server with apt-get, started it up and did the following:</p>

<pre><code>rabbitmqctl add_user test 1234
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
rabbitmq-plugins enable rabbitmq_management

cd /usr/local/bin/
wget https://raw.githubusercontent.com/rabbitmq/rabbitmq-management/rabbitmq_v3_5_6/bin/rabbitmqadmin
chmod +x rabbitmqadmin

rabbitmqadmin -H 127.0.0.1 -u test -p 1234 list vhosts
</code></pre>

<p>But the call to rabbitmqadmin always results in <em>Could not connect: [Errno 111] Connection refused</em></p>

<p>I have tried the following:</p>

<ul>
<li>restarting the service (/etc/init.d/rabbitmq-server
restart/stop/start) </li>
<li>verified that rabbitmq-management is enabled via <em>rabbitmq-plugins list</em> and checking <em>/etc/rabbitmq/enabled_plugins</em></li>
<li>verified that rabbitmq-management actually started by checking <em>rabbitmqctl status</em> and the rabbitmq logs</li>
<li>removing/reinstalling rabbitmq-server</li>
<li>removing/reinstalling rabbitmqadmin</li>
<li>i checked that 127.0.0.1 was in fact listed in <em>/etc/hosts</em></li>
</ul>

<p>I tried <em>rabbitmqadmin list users</em> and I get the same problem. I'm pretty stumped, any ideas?</p>

<p>note: i'm not sure if it's relevant, but i had some trouble getting rabbitmq-server installed, i kept getting "unmet dependencies" issues and running <em>apt-get -f install</em> would remove some other packages that i needed. i think the problem actually came from installing erlang, and eventually got it working by going through the tree of unmet dependencies and installing each of them one at a time until erlang and rabbitmq-server were both installed. </p>

<p>ALSO i added "deb <a href="http://http.debian.net/debian" rel="noreferrer">http://http.debian.net/debian</a> wheezy-backports main" to <em>/etc/apt/sources.list</em> so i also tried removing rabbitmq-server, removing the repo, apt-get update and reinstalling rabbitmq-server, still nothing.</p>