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')
相关推荐
XuecWu38 小时前
【Mac系统】一次 Keychain 异常导致的 Trae 卡死问题排查
macos
青山_FPGA9 小时前
以太网 MAC-PHY 接口总结
嵌入式硬件·macos
小锋学长生活大爆炸10 小时前
【开源软件】打造 macOS 纯本地 LLM 工作台 | Sidekick
macos·llm
bleuesprit10 小时前
MAC 电脑快速打开claude code 终端
macos
雨声不在11 小时前
mac-intel安装git-lfs
git·elasticsearch·macos
Cho1yon1 天前
【第15期:车机CarPlay使用中语音唤醒失效问题分析与解决方案】
macos·车载系统·objective-c·cocoa
咸鱼永不翻身1 天前
Lua脚本事件检查工具
unity·lua·工具
星辰即远方1 天前
Masonry
macos·objective-c·cocoa
一只AI打工虾的自我修养1 天前
Mac mini 本地AI工作站配置指南(2026实战):从零打造 M4 Mac mini AI 开发环境
人工智能·macos
allanGold1 天前
figma sketch 平替工具有哪些
macos·figma·sketch·pencil·penbot