liunxCentOS7如何下载rabbitmq
时间: 2023-11-08 09:51:08 浏览: 118
你可以按照以下步骤在 CentOS 7 上下载 RabbitMQ:
1. 首先,安装 EPEL 存储库:
```
sudo yum install epel-release
```
2. 安装 RabbitMQ 的官方存储库。你需要先导入 RabbitMQ 的 GPG 密钥:
```
sudo rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
```
然后下载存储库文件:
```
sudo curl -L -o /etc/yum.repos.d/rabbitmq.repo https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/7/bintray-rabbitmq-rpm.repo
```
3. 安装 RabbitMQ:
```
sudo yum install rabbitmq-server
```
4. 启动 RabbitMQ 服务:
```
sudo systemctl start rabbitmq-server
```
你可以使用以下命令检查 RabbitMQ 是否正在运行:
```
sudo systemctl status rabbitmq-server
```
如果一切正常,你应该会看到类似于以下输出:
```
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-09-22 12:34:56 UTC; 5s ago
Main PID: 12345 (beam.smp)
Status: "Initialized"
CGroup: /system.slice/rabbitmq-server.service
├─12345 /usr/lib64/erlang/erts-11.1.8.1/bin/beam.smp -W w -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30...
├─12443 /usr/lib64/erlang/erts-11.1.8.1/bin/epmd -daemon
├─12501 erl_child_setup 65536
├─12567 inet_gethost 4
└─12568 inet_gethost 4
```
现在你已经成功下载并启动了 RabbitMQ 服务。
阅读全文