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')
相关推荐
w***76551 天前
[golang][MAC]Go环境搭建+VsCode配置
vscode·macos·golang
白狐_7981 天前
网络基础核心问题深度解析:从IP/MAC到IPv6与路由配置
网络·tcp/ip·macos
z***67771 天前
macOS安装Redis
数据库·redis·macos
j***63081 天前
MacOS升级ruby版本
开发语言·macos·ruby
IMPYLH2 天前
Lua 的 require 函数
java·开发语言·笔记·后端·junit·lua
avi91112 天前
Lua高级语法-第二篇
lua·游戏开发·编程语言·语法糖
雨中飘荡的记忆2 天前
秒杀系统设计与实现
java·redis·lua
AirDroid_cn3 天前
iOS 18 后台应用偷跑流量,如何限制?
macos·ios·cocoa
emo了小猫3 天前
Redis 执行 Lua 脚本过程中报错,会发生什么
redis·junit·lua