mac安装
由于用brew安装,总是提示 openssl路径不存在,故手工安装
可以用官方的指导
https://openresty.org/cn/installation.html
就是注意下面的命令,如果报错,手动指定部分参数即可,"/usr/local/Cellar/[email protected]/1.1.1k" 和 "/usr/local/Cellar/pcre/8.44/" 替换成自己电脑的路径和版本号即可
./configure \
--with-cc-opt="-I/usr/local/Cellar/[email protected]/1.1.1k/include/ -I/usr/local/Cellar/pcre/8.44/include/" \
--with-ld-opt="-L/usr/local/Cellar/[email protected]/1.1.1k/lib/ -L/usr/local/Cellar/pcre/8.44/lib/" \
-j8\
--with-pcre-jit \
--with-ipv6 \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_v2_module