简体   繁体   English

OpenStack Juno上的RabbitMQ

[英]RabbitMQ on Openstack Juno

I am installing Openstack Juno on Fedora 19. I have deleted RabbitMQ default user "guest" and create a new user named "demo". 我正在Fedora 19上安装Openstack Juno。我删除了RabbitMQ默认用户“ guest”,并创建了一个名为“ demo”的新用户。 And in all nova.conf I config rabbit_userid=demo. 并且在所有nova.conf中,我都配置了rabbit_userid = demo。 But connected to localhost:5672 failed. 但是连接到localhost:5672失败。 From the rabbitmq log, RabbitMQ still use default user "guest" to connect.I tried to set default_user "demo" in rabbitmq.conf but it doesn't work.Why and how to resolve? 从rabbitmq日志中,RabbitMQ仍使用默认用户“ guest”进行连接。我尝试在rabbitmq.conf中设置default_user“ demo”,但不起作用。为什么以及如何解决? Following is the error log: 以下是错误日志:

{handshake_error,starting,0,{amqp_error,access_refused, "AMQPLAIN login refused: user 'guest'- invalid credentials",'connection.start_ok'}}` {handshake_error,starting,0,{amqp_error,access_refused,“拒绝AMQPLAIN登录:用户'来宾'-无效凭据”,'connection.start_ok'}}`

The content in rabbitmq.conf: rabbitmq.conf中的内容:

[ {rabbit, [{default_pass, [<<"demo">>]}], [{default_user, [<<"demo">>]}]} ]. [{rabbit,[{default_pass,[<<“ demo” >>]}}],[{default_user,[<<“ demo” >>]}]}]]。

You need to set the user and password on your application AMQP Client. 您需要在应用程序AMQP客户端上设置userpassword RabbitMQ default user has nothing to do with that. RabbitMQ默认用户与此无关。 So if you want to use user demo and password demo , then when you open a connection on the application side, you have to use those credentials 因此,如果要使用用户demo和密码demo ,那么在应用程序端打开连接时,必须使用这些凭据

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

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