Ubuntu 16.04 安装 RabbitMQ
时间: 2023-12-19 14:30:10 浏览: 180
以下是在Ubuntu 16.04上安装RabbitMQ的步骤:
1.更新apt-get包列表:
```shell
sudo apt-get update
```
2.安装RabbitMQ所需的Erlang:
```shell
sudo apt-get install erlang-nox
```
3.添加RabbitMQ的APT存储库密钥:
```shell
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
```
4.添加RabbitMQ的APT存储库到源列表中:
```shell
echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
```
5.更新apt-get包列表:
```shell
sudo apt-get update
```
6.安装RabbitMQ:
```shell
sudo apt-get install rabbitmq-server
```
7.启动RabbitMQ:
```shell
sudo systemctl start rabbitmq-server
```
8.检查RabbitMQ是否正在运行:
```shell
sudo systemctl status rabbitmq-server
```
如果RabbitMQ正在运行,您应该会看到“active (running)”字样。
阅读全文