Mac安装rabbitmq的详细教程
时间: 2023-11-04 18:05:13 浏览: 117
下面是Mac安装rabbitmq的详细教程:
1. 安装Homebrew
在Mac终端中输入以下命令安装Homebrew:
```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
2. 安装Erlang
在Mac终端中输入以下命令安装Erlang:
```
brew install erlang
```
3. 安装RabbitMQ
在Mac终端中输入以下命令安装RabbitMQ:
```
brew install rabbitmq
```
4. 启动RabbitMQ
在Mac终端中输入以下命令启动RabbitMQ:
```
brew services start rabbitmq
```
5. 验证安装
在Mac终端中输入以下命令验证RabbitMQ是否成功安装:
```
rabbitmqctl status
```
如果输出类似于以下内容,说明RabbitMQ已经成功安装并启动:
```
Status of node rabbit@localhost
[{pid,xxx},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.x.x"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.x.x"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.x.x"},
{rabbit,"RabbitMQ","3.x.x"},
{mnesia,"MNESIA CXC 138 12","4.15.5"},
{os_mon,"CPO CXC 138 46","2.4.7"},
{rabbit_common,[],"3.x.x"},
{cowboy,"Small, fast, modern HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.0.0"},
{ssl,"Erlang/OTP SSL application","8.3.1"},
{public_key,"Public key infrastructure","1.6.6"},
{crypto,"CRYPTO","4.5.1"},
{sasl,"SASL CXC 138 11","3.3.2"},
{stdlib,"ERTS CXC 138 10","3.6"},
{kernel,"ERTS CXC 138 10","6.2"}]},
{os,{unix,darwin}},
{erlang_version,"xxx"},
{memory,[{total,xxx},{connection_readers,xxx},{connection_writers,xxx},{connection_channels,xxx}]},
{vm_memory_high_watermark,xxx},
{vm_memory_limit,xxx},
{disk_free_limit,xxx},
{disk_free,xxx},
{file_descriptors,[{total_limit,xxx},{total_used,xxx},{sockets_limit,xxx},{sockets_used,xxx}]},
{processes,[{limit,xxx},{used,xxx}]},
{run_queue,xxx},
{uptime,xxx}]
```
这就是在Mac上安装RabbitMQ的详细步骤。
阅读全文