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')
相关推荐
黑化旺仔1 天前
【OC】KVO
macos·ios·objective-c·cocoa
liulilittle2 天前
麻将结算全链路语义(SETTLE_SEMANTICS)
ai·自动化·llm·mock·lua·测试
Liekkas Kono2 天前
macOS 27 安装 VMware Fusion 和 Win11 经验
macos·win11·vmware
liulilittle2 天前
麻将服务器崩溃补偿与异常处理语义(CRASH_SEMANTICS)
ai·自动化·llm·mock·lua·测试·tools
liulilittle2 天前
麻将 UI 层可观察行为(UI_BEHAVIOR)
ai·自动化·llm·mock·lua·测试·tools
liulilittle2 天前
C++ 引擎接口到 mock 的映射(INTERFACE_MAP)
ai·自动化·llm·mock·lua·测试·tools
shark-chili3 天前
关于AI辅助编程的认知
数据库·人工智能·redis·macos·缓存
zwd20054 天前
Mac 上写英文遇到不会的词,有哪些工具?输入法、翻译软件、写作助手怎么选
人工智能·macos·效率工具·英语写作·输入法·deepl·翻译工具
33三 三like4 天前
Jx-Mac 本地部署过程总结
macos
bst@微胖子4 天前
Linux环境做LVM快照
lua