1.安装Erlang
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum update
yum install erlang
验证:
erl -verison
Erlang.png
2.安装RabbitMQ
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.1/rabbitmq-server-3.5.1-1.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server-3.6.1-1.noarch.rpm
3. 安装web管理界面插件
rabbitmq-plugins enable rabbitmq_management
4. 设置RabbitMQ远程IP登录
a.创建账号
rabbitmqctl add_user test 123456
b.设置用户角色
rabbitmqctl set_user_tags test administrator
c.设置用户权限
rabbitmqctl set_permissions -p "/" test ".*" ".*" ".*"
d.设置完成后可以查看当前用户和角色
rabbitmqctl list_users
网友评论