01 下载
1.1 下载地址1.2 下载 02 安装
2.1 安装Erlang2.2 安装RabbitMQ 03 配置
01 下载 1.1 下载地址rabbitmq: https://github.com/rabbitmq/rabbitmq-server/releaseserlang: https://www.erlang-solutions.com/downloads/ 1.2 下载
① 创建临时安装目录:
mkdir -p ~/tmp/install/rabbitmq mkdir -p ~/tmp/install/erlang
② 下载rabbitmq:
cd ~/tmp/install/rabbitmq wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.23/rabbitmq-server_3.8.23-1_all.deb
③ 下载erlang:
cd ~/tmp/install/erlang wget https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_24.0.5-1~ubuntu~focal_amd64.deb02 安装 2.1 安装Erlang
cd ~/tmp/install/erlang ll dpkg -i esl-erlang_24.0.5-1~ubuntu~focal_amd64.deb apt install -f -y2.2 安装RabbitMQ
cd ~/tmp/install/rabbitmq ll dpkg -i rabbitmq-server_3.8.23-1_all.deb apt install -f -y03 配置
① 停止rabbitmq:
systemctl stop rabbitmq-server
② 启用管理组件:
echo "[rabbitmq_management]." > /etc/rabbitmq/enabled_plugins
③ 创建配置文件:
cat > /etc/rabbitmq/rabbitmq.conf <<- 'EOF' vm_memory_high_watermark.absolute = 1GB log.file.level = info channel_max = 2047 hipe_compile = true disk_free_limit.absolute = 10GB log.file.rotation.date = $D23 log.file.rotation.count = 50 log.file.rotation.size = 134217728 log.console = false log.syslog = false loopback_users = none EOF
⑥ 重启服务:
systemctl restart rabbitmq-server systemctl enable rabbitmq-server
⑦ 配置防火墙:
ufw allow 15672/tcp
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)