赞
踩
# vim /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
# yum install erlang
# rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
# yum install rabbitmq-server-3.7.3-1.el7.noarch.rpm
# systemctl enable rabbitmq-server.service
# rabbitmq-plugins enable rabbitmq_management
node : rabbit@example
home dir : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/advanced.config
: /etc/rabbitmq/rabbitmq.conf
默认用户名和密码: guest/guest;
需要注意的是:guest用户仅仅提供localhost作为ip登录;
如果远程登录,如:http://192.168.241.101:15672/, 则会提示错误,登录不了:
# 如下是日志输出
=WARNING REPORT==== 21-Oct-2017::23:31:33 ===
HTTP access denied: user 'guest' - User can only log in via localhost
访问控制可参考:Access Control (Authentication, Authorisation) in RabbitMQ
# /etc/rabbitmq/rabbitmq.conf
loopback_users = none
到此搭建成功
# rabbitmqctl add_user admin 123456
# rabbitmqctl set_user_tags admin administrator
# rabbitmqctl list_users
http://blog.csdn.net/zyz511919766/article/details/42292655
# chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。