我是靠谱客的博主 干净烤鸡,这篇文章主要介绍mac上安装apisix(源码安装),现在分享给大家,希望可以做个参考。

mac上安装apisix(源码安装)

  1. 获取源码包wget https://downloads.apache.org/apisix/2.2/apache-apisix-2.2-src.tgz并解压
  2. 安装依赖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
  3. 检查apisix版本 ./bin/apisix version
  4. 启动apisix ./bin/apisix start
    • 这里需要lsof,在brew install lsof之后还要配置一下环境变量,在.zshrc中加入lsof的PATH
  5. 通过adminAPI或dashboard可以设置路由

最后

以上就是干净烤鸡最近收集整理的关于mac上安装apisix(源码安装)的全部内容,更多相关mac上安装apisix(源码安装)内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(150)

评论列表共有 0 条评论

立即
投稿
返回
顶部