mac上安装apisix(源码安装)
- 获取源码包
wget https://downloads.apache.org/apisix/2.2/apache-apisix-2.2-src.tgz并解压 - 安装依赖
make deps- 这一步中提示需要openresty,
brew tap openresty/brew+brew install openresty如果直接install会显示找不到No formulae found in taps. - 又遇到问题
Failed to download resource "openresty-openssl111--patch"通过查询 MacOS下安装OpenResty踩坑记录发现需要设置本地hosts,加入199.232.4.133 raw.githubusercontent.com /bin/bash: luarocks: command not found缺少LuaRocks->brew install luarocks
- 这一步中提示需要openresty,
- 检查apisix版本
./bin/apisix version - 启动apisix
./bin/apisix start- 这里需要lsof,在
brew install lsof之后还要配置一下环境变量,在.zshrc中加入lsof的PATH
- 这里需要lsof,在
- 通过adminAPI或dashboard可以设置路由
最后
以上就是干净烤鸡最近收集整理的关于mac上安装apisix(源码安装)的全部内容,更多相关mac上安装apisix(源码安装)内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复