rabbitmq3.7.0 linux安装
时间: 2023-11-10 14:07:19 浏览: 106
好的,以下是 rabbitmq3.7.0 在 Linux 上的安装步骤:
1. 首先,确保你的系统已经安装了 Erlang/OTP 21.0 或者更高版本。你可以通过以下命令来检查 Erlang 版本:
```
erl -version
```
2. 接下来,添加 RabbitMQ 的官方 APT 存储库到你的系统中。在终端中执行以下命令:
```
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
echo "deb https://dl.bintray.com/rabbitmq/debian bionic main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
```
注意:如果你的系统不是 Ubuntu 18.04 Bionic Beaver,请将上面的命令中的“bionic”替换为你的系统代号。
3. 更新 APT 软件包列表并安装 RabbitMQ:
```
sudo apt-get update
sudo apt-get install rabbitmq-server
```
4. 安装完成后,启动 RabbitMQ 服务:
```
sudo systemctl start rabbitmq-server
```
5. 最后,检查 RabbitMQ 服务是否已经启动:
```
sudo systemctl status rabbitmq-server
```
如果一切正常,你应该能够看到类似于以下输出:
```
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-08-10 14:23:45 UTC; 2s ago
Main PID: 12345 (beam.smp)
Tasks: 89 (limit: 4915)
CGroup: /system.slice/rabbitmq-server.service
├─12345 /usr/lib/erlang/erts-10.3.5.6/bin/beam.smp -W w -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 32000 -K true -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.7.0/sbin/../ebin -noshell -noinput -s rabbit boot -sname rabbit@localhost -boot start_sasl -config /etc/rabbitmq/rabbitmq -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/rabbit@localhost.log"} -rabbit sasl_error_logger {file,"/var/log/rabbitmq/rabbit@localhost-sasl.log"} -rabbit enabled_plugins_file /etc/rabbitmq/enabled_plugins -rabbit plugins_dir /usr/lib/rabbitmq/plugins:/usr/lib/rabbitmq/lib/rabbitmq_server-3.7.0/plugins -rabbit plugins_expand_dir /var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@localhost"
├─12456 /usr/lib/erlang/erts-10.3.5.6/bin/epmd -daemon
└─12567 inet_gethost 4
Aug 10 14:23:45 ubuntu systemd[1]: Started RabbitMQ broker.
```
阅读全文