Lua > Mac Mini M4安装openresty

Mac Mini M4安装openresty

主要参考 https://www.cnblogs.com/helios-fz/p/15703260.html

bash 复制代码
brew uninstall nginx

brew update
brew install pcre openssl
#brew install geoip

# brew tap openresty/brew
# brew install openresty
# brew install openresty/brew/openresty

# VERSION=1.21.4.4
wget https://openresty.org/download/openresty-VERSION.tar.gz
tar -xzvf openresty-VERSION.tar.gz
cd openresty-VERSION/


./configure \
   --with-cc-opt="-I/opt/homebrew/opt/openssl/include/ -I/opt/homebrew/opt/pcre/include/" \
   --with-ld-opt="-L/opt/homebrew/opt//openssl/lib/ -L/opt/homebrew/opt/pcre/lib/" \
   -j8
   
make
sudo make install
# 最后输出内容为 ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/local/openresty/bin/openresty

vim ~/.zshrc
# openresty
export OPENRESTY_HOME=/usr/local/openresty
export NGINX_HOME=$OPENRESTY_HOME/nginx
export PATH=$PATH:$NGINX_HOME/sbin:$OPENRESTY_HOME/bin
source ~/.zshrc

which resty
resty -e "print('Hary Lua')
相关推荐
fish_study_csdn2 分钟前
自己的mac 电脑上部署本地大模型
macos
绝世唐门三哥1 小时前
Mac 查看手机信息工具 + platform-tools 使用全指南
windows·macos
qinyia2 小时前
如何彻底卸载macOS上的conda并清理环境变量配置
macos·conda
0wioiw013 小时前
Onesignal(Xcode)
ide·macos·xcode
哈基米~南北绿豆16 小时前
虚拟机体验:在Windows/Mac上运行鸿蒙PC开发环境
windows·macos·harmonyos
杨了个杨89821 天前
Tengine与OpenResty
openresty
曹天骄1 天前
OpenResty 源站安全隔离设计在边缘计算架构中的工程实践
安全·边缘计算·openresty
2601_949146531 天前
APP语音通知接口集成实战:移动端应用接入语音提醒API的开发手册
macos·objective-c·cocoa
小鹿软件办公1 天前
Apple 发布 macOS 11、watchOS 10 和 watchOS 9 更新
macos·objective-c·cocoa
小王不爱笑1322 天前
Postman 使用教程
测试工具·lua·postman