当前位置 博文首页 > 做自己擅长的事:openresty+SSL安装
tar -xvf pcre8.21.tar.gz
./configure –prefix=/usr/local/pcre
make && make install
tar -xvf zlib1.2.8.tar.gz
./configure –prefix=/usr/local/zlib
tar -xvf openssl-1.0.2.tar.gz
./config –prefix=/usr/local/openssl
./configure –prefix=/home/app/ngxserver –with-http_realip_module –with-pcre –with-luajit –with-http_ssl_module –add-module=/home/app/openresty/ngx_cache_purge-2.3/ –add-module=/home/app/openresty/nginx_upstream_check_module-0.3.0/ –with-pcre=/home/app/openresty/pcre-8.21 –with-zlib=/home/app/openresty/zlib-1.2.8 –with-openssl=/home/app/openresty/openssl-1.0.2 -j2
make && make install
cd /home/app/ngxserver/nginx/sbin
./nginx
访问http://localhost/
显示welcome openresty