一安装步骤:
""" 1.你需要对应erlang和rabbitmq的版本对应关系 https://www.rabbitmq.com/which-erlang.html 2.选定版本 erlang:erlang-21.3.8.14-1.el7.x86_64.rpm rabbitmq:rabbitmq-server-3.8.5-1.el7.noarch.rpm 3.卸载erlang rpm -qa | grep erlang | xargs rpm -e --nodeps 4.安装erlang 4.1去官网 https://packagecloud.io/rabbitmq/erlang 4.2找到对应的版本 wget --content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-21.3.8.14-1.el7.x86_64.rpm/download.rpm 4.3安装 rpm -Uvh erlang-23.3.4.11-1.el7.x86_64.rpm # 安装 该步骤可以省略 yum install -y erlang # 查看版本 erl -v 5安装rabitmq wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5/rabbitmq-server-3.8.5-1.el7.noarch.rpm 5.2需要一些配置 rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc yum -y install epel-release yum -y install socat 5.3解压&安装 rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm 5.4启用平台管理插件 rabbitmq-plugins enable rabbitmq_management 6.启动 6.1启动 systemctl start rabbitmq-server 6.2查看状态 systemctl status rabbitmq-server 6.3可视化网址 wusen0601.xyz:15672 guest/guest 6.4但是mq3版本以后只让本机登录 6.4.1创建用户密码 rabbitmqctl add_user admin admin 6.4.2设置admin为管理员 rabbitmqctl set_user_tags admin administrator 6.4.3授权远程访问 rabbitmqctl set_permissions -p / admin "." "." ".*" 6.4.4重启rabbitmq systemctl restart rabbitmq-server 7去浏览器看 wusen0601.xyz:15672 admin/admin """