如何在安装时增加默认模块

问答中心分类: OneinStack如何在安装时增加默认模块
syluwei asked 7 年 ago
编译时如何 增加ngx_http_upstream_zone_module  
ngx_http_upstream_least_conn_module
ngx_http_upstream_keepalive_module
ngx_http_upstream_ip_hash_module
ngx_http_upstream_hash_module
ngx_http_proxy_module
ngx_http_gzip_filter_module
ngx_http_gzip_static_module
ngx_http_limit_conn_module
ngx_http_limit_req_module
编译时修改配置文件如下,编译错误。

# Add modules
nginx_modules_options='ngx_http_upstream_zone_module ngx_http_upstream_least_conn_module ngx_http_upstream_keepalive_module ngx_http_upstream_ip_hash_module ngx_http_upstream_hash_module ngx_http_proxy_module ngx_http_gzip_filter_module ngx_http_gzip_static_module ngx_http_limit_conn_module ngx_http_limit_req_module'
php_modules_options=''

3 Answers
oneinstack answered 7 年 ago
在请在oneinstack/src 下载对应源码,

nginx_modules_options='--add-module=../ngx_http_google_filter_module --add-module=../other‘’

syluwei answered 7 年 ago
官方默认模块也要重新下载源码放入?
 

oneinstack answered 7 年 ago
你这个都是第三方源码,自己加源码 改options.conf