tengine 2.3.0 升级失败 显示配置错误

问答中心分类: Nginxtengine 2.3.0 升级失败 显示配置错误
kooguy asked 5 年 ago
~/oneinstack/src/tengine-2.3.0 ~/oneinstack/src ~/oneinstack ~/oneinstack
make: *** No rule to make target `clean'. Stop.
./configure: error: invalid option "--with-http_concat_module=shared"
make: *** No targets specified and no makefile found. Stop.
Upgrade Tengine failed!
 

5 Answers
oneinstack answered 5 年 ago

tengine 2.3.0和编译、配置文件相关变更如下,
1. 参数去掉

--with-http_concat_module=shared --with-http_sysguard_module=shared

2. /usr/local/tengine/conf/nginx.conf 去掉如下行

reuse_port on;
load ngx_http_concat_module.so;
load ngx_http_sysguard_module.so;

kooguy answered 5 年 ago
"参数去掉"
该如何操作

oneinstack answered 5 年 ago

升级oneinstack最新之后,修改~/oneinstack/include/upgrade_web.sh 大概119行将./configure ${tengine_configure_args} 修改为如下:
./configure --prefix=${tengine_install_dir} --user=${run_user} --group=${run_user} --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-openssl=../openssl-${openssl11_ver} --with-pcre=../pcre-${pcre_ver} --with-pcre-jit --with-jemalloc

cnyyk answered 5 年 ago
这个升级太不平滑了。。。
 
以前启用了concat,升级到新的2.3.1,没有这个,几个站页面加载不了css和js。
 
2.3.1下
error: invalid option "--with-http_concat_module"

oneinstack answered 5 年 ago
tengine2.3改了很多,比较靠近主nginx版本