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')
相关推荐
m_136874 小时前
Mac Intel 芯片 Docker 一键部署 Neo4j 最新版本教程
macos·docker·neo4j
Aiah.4 小时前
大彩串口屏-烧录与调试
lua·大彩串口屏·ui显示
程序猿多布5 小时前
Lua 面向对象编程
lua
qyvlik5 小时前
MacOS 使用 luarocks+wrk+luajit
macos·lua·wrk
Digitally6 小时前
如何将视频从 iPhone 转移到 Mac
macos·ios·iphone
关键帧-Keyframe9 小时前
音视频面试题集锦第 38 期
macos·面试·音视频·cocoa
Winter_Sun灬9 小时前
普通键盘在MacOS上如何使用快捷键
macos·计算机外设·键盘
云梦谭18 小时前
C/C++ 与 Lua 互相调用详解
lua