Lua > Mac Mini M4安装openresty
Mac Mini M4安装openresty
主要参考 https://www.cnblogs.com/helios-fz/p/15703260.html
brew uninstall nginx
# brew tap openresty/brew
# brew install openresty
# brew install openresty/brew/openrestybrew update
brew install pcre openssl
#brew install geoip# 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/" \-j8make
sudo make install
# 最后输出内容为 ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/local/openresty/bin/openrestyexport NGINX_HOME=/usr/local/openresty/nginx