安装
mac安装有了brew很方便,windows的可参考 win10 安装rabbitMQ详细步骤
brew install rabbitmq
启动
brew services start rabbitmq
关闭
brew services stop rabbitmq
出了问题之后可以重启一下
brew services restart rabbitmq
some issue
某些库下载超时
比如我安装过程中,发现libpng总是下不来
brew --cache -s libpng
输出如下
/Users/andydennis/Library/Caches/Homebrew/downloads/52af0b46c4798c4335195c9e01af657e58b8cb7f3d0fbcad1a753c3aff1ecc93--libpng-1.6.43.tar.xz
手动装一下
mv libpng-1.6.43.tar.xz "$(brew --cache -s libpng)"
然后
brew install libpng
Failed to connect to raw.githubusercontent.com port 443: Connection refused
报错信息
Fetching openssl@3
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/32addadcurl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
Error: rabbitmq: Failed to download resource "openssl@3.rb"
可能是ip解析问题,查询一下 https://www.ipaddress.com/ ,
发现地址是 185.199.108.133
, 185.199.109.133
, 185.199.110.133
和185.199.111.133
, 于是打开/etc/hosts
文件
sudo vim /etc/hosts
添加下面语句
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
code
等有空更一下。