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
本文来自博客园,作者:JAVA开发老菜鸟,转载请注明原文链接:https://www.cnblogs.com/sam-uncle/p/16463709.html