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')
相关推荐
疯狂吧小飞牛12 小时前
Lua 中的 __index、__newindex、rawget 与 rawset 介绍
开发语言·junit·lua
67号宇航员13 小时前
【取消mac的系统更新小圆点】
macos
疯笔码良14 小时前
【Flutter】flutter安装并在Xcode上应用
flutter·macos·xcode
2501_9151063214 小时前
iOS 26 APP 性能测试实战攻略:多工具组合辅助方案
android·macos·ios·小程序·uni-app·cocoa·iphone
疯狂吧小飞牛16 小时前
Lua C API 中的注册表介绍
java·c语言·lua
xingxing_F17 小时前
PDF Protector for mac PDF文档加密解密工具
macos·pdf
爬山算法18 小时前
Redis(64)Redis的Lua脚本有哪些常见场景?
数据库·redis·lua
lcz-200018 小时前
MacOS 安装器安装,正在等待其他安装完成
macos
至善迎风18 小时前
把 Python 应用打包成 Mac 应用程序 — 完整指南
python·macos
尽兴-18 小时前
【10 分钟!M4 Mac mini 离线部署「私有 ChatGPT」完整实录】
macos·ai·chatgpt·大模型·ollama·私有化