1. erlang下载地址(之前官网下载的有问题):
https://bintray.com/rabbitmq/rpm/erlang/20.3.8.9-1
2. 安装erlang & rabbitmq:
rpm -ivh erlang-20.3.8.9-1.el6.x86_64.rpm
rpm -ivh rabbitmq-server-3.7.8-1.el6.noarch.rpm
3. 启动
1): rabbitmq前台启动
rabbitmq-server start
2): rabbitmq后台启动
rabbitmq-server -detached
4. 查看所有插件列表:
rabbitmq-plugins list -v
4.1 启动插件:
rabbitmq-plugins enable rabbitmq_management
5. 创建用户:
rabbitmqctl add_user nie 1234
6. 设置角色:
rabbitmqctl set_user_tags nie administrator
7. 设置默认vhost("/")访问权限
rabbitmqctl set_permissions -p "/" nie "." "." ".*"
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/191261.html