如何在nginx上加其他的编译模块?

问答中心分类: OneinStack如何在nginx上加其他的编译模块?
探路者 asked 12月 ago

您好!
  在安装oneinstack之前,我想在nginx上再加上一些源码编译的模块,以便在安装oneinstack 的时候也被同时源码编译安装上,请问如何做呢?

2 Answers
oneinstack 管理员 answered 12月 ago

vi ~/oneinstack/include/nginx.sh
./configure 编译参数后面加上相关参数

探路者 answered 12月 ago

 
Tar_Cd ${Nginx_Ver}.tar.gz ${Nginx_Ver}
    if echo ${Nginx_Ver} | grep -Eqi ‘nginx-[0-1].[5-8].[0-9]’ || echo ${Nginx_Ver} | grep -Eqi ‘nginx-1.9.[1-4]$’; then
        ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_spdy_module –with-http_gzip_static_module –with-ipv6 –with-http_sub_module ${NginxMAOpt} ${Nginx_Modules_Options}
    else
        ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_v2_module –with-http_gzip_static_module –with-ipv6 –with-http_sub_module ${NginxMAOpt} ${Nginx_Modules_Options}
    fi
    make && make install
 
  编译参数上有两行,不清楚该加在哪里啊?