擅长:python、mysql、java
<p>这可能是一个rabbitmq配置问题:如本文所述:<a href="https://www.rabbitmq.com/access-control.html" rel="nofollow noreferrer">https://www.rabbitmq.com/access-control.html</a>,<strong>“guest”用户只能通过localhost进行连接:</strong></p>
<blockquote>
<p>By default, the guest user is prohibited from connecting to the broker remotely; it can only connect over a loopback interface (i.e. localhost). This applies both to AMQP and to any other protocols enabled via plugins. Any other users you create will not (by default) be restricted in this way.</p>
<p>This is configured via the loopback_users item in the configuration file.</p>
<p>If you wish to allow the guest user to connect from a remote host, you should set the loopback_users configuration item to []. A complete >rabbitmq.config which does this would look like:</p>
<p>[{rabbit, [{loopback_users, []}]}].</p>
</blockquote>