//下载地址
https://www.rabbitmq.com/which-erlang.html
https://packagecloud.io/rabbitmq/erlang/
//下载链接
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
//安装步骤
yum install erlang -y
yum install rabbitmq-server -y
//查看安装版本
rpm -qa | grep erlang
rpm -qa | grep rabbitmq
//web管理插件
rabbitmq-plugins enable rabbitmq_management
//启动
systemctl start rabbitmq-server
systemctl status rabbitmq-server
//端口开放
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --zone=public --add-port=5672/tcp --permanent
//重新载入
firewall-cmd --reload
//查看端口
firewall-cmd --list-port
http://ip:15672/
默认账号:guest(密码同用户名一致)
报错:User can only log in via localhost,意思是指 guest 只能用于本地登录,因此需要新添加管理员账户
//创建账户 用户名:root 密码:123456 rabbitmqctl add_user root 123456
//设置用户 rabbitmqctl set_user_tags admin administrator
//设置权限 rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"