系统相关
首页 > 系统相关> > centos7 安装RabbitMQ

centos7 安装RabbitMQ

作者:互联网

1. 下载依赖

安装依赖:

yum install -y gcc gcc-c++ unixODBC-devel openssl-devel ncurses-devel

2.安装Erlang

Erlang清单地址: http://erlang.org/download/

RabbitMQ清单地址: https://github.com/rabbitmq/rabbitmq-server/releases

wget http://erlang.org/download/otp_src_21.3.tar.gz
tar -zxvf otp_src_21.3.tar.gz
cd otp_src_21.3/
./configure --prefix=/usr/local/erlang
make & make install
vim /etc/profile
export PATH=$PATH:/usr/local/erlang/bin
编译生效source /etc/profile

3. 安装RabbitMQ

# 命令行下载
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.21/rabbitmq-server-3.8.35.tar.xz
xz -d rabbitmq-server-3.8.35.tar.xz
tar -xvf rabbitmq-server-3.8.35.tar
vim /etc/profile
export PATH=$PATH:/usr/local/rabbitmq_server-3.8.35/sbin
编译生效source /etc/profile

4. 启动mq

systemctl start rabbitmq-server

5.开启页面管理插件

rabbitmq-plugins enable rabbitmq_management

访问http://192.168.0.203:15672/,用户名/密码为 guest/guest

标签:tar,rabbitmq,server,centos7,RabbitMQ,PATH,erlang,安装,3.8
来源: https://www.cnblogs.com/sam-uncle/p/16463709.html