rabbitmq简单安装
参考: https://www.cnblogs.com/rmxd/p/11583932.html
1. 下载 Erlang 的 rpm 包
RabbitMQ 是 Erlang 语言编写,所以 Rrlang 环境必须要有,且 Erlang 版本要和 RabbitMQ 版本匹配。https://www.rabbitmq.com/which-erlang.html
Erlang 下载地址:https://www.rabbitmq.com/releases/erlang/
wget https://www.rabbitmq.com/releases/erlang/erlang-18.3-1.el6.x86_64.rpm
2. 下载 RabbitMQ 对应的 rpm 包
RabbitMQ 下载地址:https://www.rabbitmq.com/releases/rabbitmq-server/
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
3. 下载 socat 的 rpm 包
RabbitMQ 安装依赖于 socat,所以需要下载 socat。
socat 下载地址:http://repo.iotti.biz/CentOS/6/x86_64/socat-1.7.3.2-1.el6.lux.x86_64.rpm
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm
4. 分别按照顺序安装 Relang、Socat、RabbitMQ
rpm -ivh erlang-18.3-1.el6.x86_64.rpm
rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm
rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm
5. 配置 RabbitMQ
vi /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
/loop []
6. 安装管理插件
7. 启动 RabbitMQ