RabbitMQ 当 运行 <IP Address> 给出 AuthenticationException
RabbitMQ when running with <IP Address> giving AuthenticationException
我开发了一个连接rabbitMQ服务器的小程序。
我已经使用了所有的默认设置。
方法
public Connection getConnection(String host) throws IOException, TimeoutException {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(host);
return factory.newConnection();
}
当我将字符串 localhost
传递给此方法时 it return me a valid connection
但是当我传递机器的 IP 地址 xxxx.xxxx.xxx.xx
时,它会给出以下错误
com.rabbitmq.client.AuthenticationFailureException:ACCESS_REFUSED - 使用 PLAIN 身份验证机制登录被拒绝。有关详细信息,请参阅代理日志文件。
我需要传递 IP 地址才能从其他机器访问它。
任何人都可以对此提供一些指导吗?
使用guest
是权限问题 guest
请阅读此Can't access RabbitMQ web management interface after fresh install
我开发了一个连接rabbitMQ服务器的小程序。 我已经使用了所有的默认设置。
方法
public Connection getConnection(String host) throws IOException, TimeoutException {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost(host);
return factory.newConnection();
}
当我将字符串 localhost
传递给此方法时 it return me a valid connection
但是当我传递机器的 IP 地址 xxxx.xxxx.xxx.xx
时,它会给出以下错误
com.rabbitmq.client.AuthenticationFailureException:ACCESS_REFUSED - 使用 PLAIN 身份验证机制登录被拒绝。有关详细信息,请参阅代理日志文件。
我需要传递 IP 地址才能从其他机器访问它。
任何人都可以对此提供一些指导吗?
使用guest
是权限问题 guest
请阅读此Can't access RabbitMQ web management interface after fresh install