精简版
1. 安装erlang的前置脚本文件
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
2. 安装erlang
yum install erlang
3. 导入key
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key
4. 导入签名
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
5 安装
yum install socat
rpm -ivh rabbitmq-server-3.8.14-1.el7.noarch.rpm
6 配置mq
https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbit/docs/rabbitmq.conf.example
rabbitmq.conf 放在/etc/rabbitmq/rabbitmq.conf
允许本地以外的host 访问
loopback_users.guest = false
7开启 mq 插件
rabbitmq-plugins enable rabbitmq_management
8 启动mq
service rabbitmq-server start
详细版
Erlang 版本对应
image.png
Erlang 安装
rabbit mq 安装
https://www.rabbitmq.com/install-rpm.html#install-rabbitmq
点击链接
image.png
复制这个
1. 安装erlang的前置脚本文件
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
image.png
2. 安装erlang
yum install erlang
image.png
3 检查安装结果
erl
image.png
yum list |grep erlang
image.png
4 安装rabbitmq service
image.png导入key
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key
image.png
https://packagecloud.io/rabbitmq/rabbitmq-server/install
image.png
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
5. 下载rabbit 安装包
image.pngkey
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install socat
安装
rpm -ivh rabbitmq-server-3.8.14-1.el7.noarch.rpm
6 配置mq
https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbit/docs/rabbitmq.conf.example
rabbitmq.conf 放在/etc/rabbitmq/rabbitmq.conf
允许本地以外的host 访问
loopback_users.guest = false
7开启 mq 插件
rabbitmq-plugins enable rabbitmq_management
8 启动mq
service rabbitmq-server start
网友评论