简体   繁体   English

与RabbitMQ一起运行时 <IP Address> 提供AuthenticationException

[英]RabbitMQ when running with <IP Address> giving AuthenticationException

I have developed a small program to connect to rabbitMQ server. 我已经开发了一个小程序来连接RabbitMQ服务器。 I have used all the default settings. 我已经使用了所有默认设置。

Method 方法

public Connection getConnection(String host) throws IOException, TimeoutException {
        ConnectionFactory factory = new ConnectionFactory();
        factory.setHost(host);
        return factory.newConnection();
    }

When I pass String localhost to this method it return me a valid connection but when I pass my machine's IP Address xxxx.xxxx.xxx.xx then it gives me below error com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. 当我将String localhost传递给此方法时, it return me a valid connection但是当我传递我的计算机的IP地址xxxx.xxxx.xxx.xx它给我以下错误com.rabbitmq.client.AuthenticationFailureException:ACCESS_REFUSED-使用身份验证拒绝登录机制平原。 For details see the broker logfile. 有关详细信息,请参阅代理日志文件。

I need to pass the IP Address to be able to access it from other machine. 我需要传递IP地址才能从其他计算机访问它。

Can anybody provide some pointers on this ? 有人可以为此提供一些指示吗?

It is a permission problem using guest guest 使用guest guest是权限问题

Please read this Can't access RabbitMQ web management interface after fresh install 全新安装后,请阅读此无法访问RabbitMQ Web管理界面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM