Step1:安装erlang
1)下载erlang
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
2)安装erlang
rpm -ihv erlang-19.0.4-1.el7.centos.x86_64.rpm
Step2:安装rabbitmq
1)下载rabbitmq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
2)导入key文件
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
3)安装rabbitmq
yum install -y rabbitmq-server-3.6.6-1.el7.noarch.rpm
Step3:开启可视化插件
rabbitmq-plugins enable rabbitmq_management
Step4:添加远程访问用户,并分配权限
1)添加用户
rabbitmqctl add_user jiak jiak
2)查看用户
rabbitmqctl list_users
3)配置用户组
rabbitmqctl set_user_tags jiak administrator
4)分配权限
rabbitmqctl set_permissions -p / jiak '.*' '.*' '.*'
Step5:开启可视化插件并启动服务
firewall-cmd --zone=public --add-port 5672/tcp 15672/tcp 25672/tcp --permanent firewall-cmd --reload
systemctl start rabbitmq-server