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.8.35/rabbitmq-server-3.8.35-1.el8.noarch.rpm
rpm -ivh rabbitmq-server-3.8.35-1.el8.noarch.rpm

4. 启动mq

systemctl start rabbitmq-server

5.开启页面管理插件

rabbitmq-plugins enable rabbitmq_management

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

posted @ 2022-07-10 18:33  JAVA开发老菜鸟  阅读(62)  评论(0编辑  收藏  举报