openresty编译安装ngx-fancyindex

问答中心分类: Nginxopenresty编译安装ngx-fancyindex
eclairkk asked 7 年 ago
编译成功 执行不了参照一键包里的openresty.sh脚本弄的。
编译出来的nginx文件 15481KB,默认的才3594KB ,足足大了430%
是我方法不对吗?我就为了装VeryNginx,ngx-fancyindex,两插件。怎么编译效率最高呢?
新人一枚 求解。
**************************************
openresty ngx-fancyindex插件安装
cd /root/lnmp/src
wget https://github.com/aperezdc/ngx-fancyindex/archive/master.zip
unzip master.zip
tar zxf openresty-1.11.2.2.tar.gz
cd /root/lnmp/src/openresty-1.11.2.2/build/nginx-1.11.2
./configure --prefix=/usr/local/openresty/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-openssl=../openssl-1.0.2j --with-pcre=../pcre-8.39 --with-pcre-jit --with-ld-opt='-ljemalloc' --add-module=../ngx-fancyindex-master
make
service nginx stop
cp nginx nginx.bak
cp /root/lnmp/src/openresty-1.11.2.2/build/nginx-1.11.2/objs/nginx /usr/local/openresty/nginx/sbin/nginx -y
service nginx start
**************************************

1 Answers
oneinstack answered 7 年 ago
新增默认是会改变nginx里面模块,正常