源码安装
- 下载源码
wget https://openresty.org/download/openresty-1.15.8.3.tar.gz
- 解压缩
tar -zxvf openresty-1.15.8.3.tar.gzcd openresty-1.15.8.3
- 编译安装
sudo ./configure --prefix=/usr/local/openresty \--with-pcre-jit \--with-http_ssl_module \--with-http_realip_module \--with-http_stub_status_module \--with-http_v2_module \--with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/" \--with-ld-opt="-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/" \--with-openssl=/usr/local/opt/openssl/ \-j8sudo makesudo make install
如果出现[/usr/local/opt/openssl/.openssl/include/openssl/ssl.h] Error 127错误,可修改bundle/nginx-1.15.8/auto/lib/openssl/conf,去除.openssl目录,重新编译安装
