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')
相关推荐
猫头虎8 小时前
2025最新OpenEuler系统安装MySQL的详细教程
linux·服务器·数据库·sql·mysql·macos·openeuler
雪域迷影1 天前
MacOS中安装并配置Redis
redis·macos·策略模式
猫头虎1 天前
Claude Code 2026 年1月9日迎来大更新:Agent 能力增强(2.1.0 详解 + 升级指南)
ide·人工智能·macos·langchain·编辑器·aigc·ai编程
小锋学长生活大爆炸1 天前
【踩坑】MacOS26开启软件的麦克风权限,如腾讯会议
macos·会议·腾讯会议·安全模式·权限·踩坑·麦克风
有个人神神叨叨1 天前
AITalk:从零到一打造 macOS 系统级语音输入引擎
macos·策略模式
系'辞1 天前
【obsidian指南】配置obsidian git插件,实现obsidian数据定时同步到github仓库(Mac电脑)
macos·github·agent·知识库
悟能不能悟1 天前
怎么使用postman批量的给api做测试
测试工具·lua·postman
栗子叶2 天前
IP协议 地址划分&MAC地址作用&ip addr命令
网络·tcp/ip·macos
draking2 天前
Anthropic 封杀当天,我把 OpenCode 升到 1.1.11,踩了 5 个坑
macos·ai编程
Roye_ack2 天前
【Mac环境配置教程】深度学习环境配置(Anaconda + PyTorch)
macos