分布式消息服务RABBITMQ版-RabbitMQ客户端连接报错原因分析:可能原因三:用户名或密码错误

时间:2024-10-17 14:38:50

可能原因三:用户名或密码错误

报错如下:

[root@ecs-test RabbitMQ-Tutorial]# java -cp .:rabbitmq-tutorial.jar Send 192.168.125.111 5672 user *******
Exception in thread "main" com.rabbitmq.client.AuthenticationFailureException: AC CES S_REFUSED - Login was refused using authentication mechanism PLAIN. For details
 see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:351)
at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:64)

解决方法:修改用户名或密码。如果忘记密码,参考重置实例密码,重置密码。

support.huaweicloud.com/rabbitmq_faq/rabbitmq-faq-200518015.html