官网Nginx+Openresty编译,


http://nginx.org/en/download.html

nginx的Mainline version、Stable version、Legacy version的版本区别
Nginx官网提供了三个类型的版本
Mainline version:Mainline 是 Nginx 目前主力在做的版本,可以说是开发版
Stable version:最新稳定版,生产环境上建议使用的版本
Legacy versions:遗留的老版本的稳定版

nginx下载地址:http://nginx.org/en/download.html

编译命令

export LUAJIT_LIB=/home/wangchunming/openresty_server/luajit/lib
export LUAJIT_INC=/home/wangchunming/openresty_server/luajit/include/luajit-2.1
./configure --prefix=/opt/soft/nginx --with-cc-opt=-O2 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_devel_kit-0.3.0 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/echo-nginx-module-0.61 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/xss-nginx-module-0.06 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_coolkit-0.2rc3 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/set-misc-nginx-module-0.32 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/form-input-nginx-module-0.12 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/encrypted-session-nginx-module-0.08 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/srcache-nginx-module-0.31 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_lua-0.10.13 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_lua_upstream-0.07 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/headers-more-nginx-module-0.33 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/array-var-nginx-module-0.05 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/memc-nginx-module-0.19 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/redis2-nginx-module-0.15 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/redis-nginx-module-0.3.7 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/rds-json-nginx-module-0.15 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/rds-csv-nginx-module-0.09 --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_stream_lua-0.0.5 --with-ld-opt=-Wl,-rpath,/home/wangchunming/openresty_server/luajit/lib --with-http_realip_module --with-pcre --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/ngx_cache_purge-master --add-module=/home/wangchunming/openresty-1.13.6.2/bundle/nginx_upstream_check_module-master --with-stream --with-stream_ssl_module --with-http_ssl_module

make
make install

相关内容

    暂无相关文章