Open zzliliang199053 opened 4 years ago
之前打过别的 patch 没?我试了下新下载的 openrestry 是可以的
[root@ngx_dev openresty-1.13.6.2]# cd bundle/nginx-1.13.6/
[root@ngx_dev nginx-1.13.6]# patch -p1 < ../../../ngx_req_status/write_filter-1.7.11.patch
patching file src/http/ngx_http.c
Hunk #1 succeeded at 72 (offset 1 line).
patching file src/http/ngx_http_core_module.h
Hunk #1 succeeded at 507 (offset -26 lines).
patching file src/http/ngx_http.h
Hunk #1 succeeded at 170 (offset -8 lines).
patching file src/http/ngx_http_write_filter_module.c
尝试使用openresty-1.13.6.2版本编入ngx_req_status,打补丁时报错如下,后续编译无法完成
patch -p1 < ../ngx_req_status/write_filter-1.7.11.patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
|diff -pruN nginx-1.7.11/src/http/ngx_http.c nginx-1.7.11.zls/src/http/ngx_http.c |--- nginx-1.7.11/src/http/ngx_http.c 2015-04-21 22:12:00.000000000 +0800 |+++ nginx-1.7.11.zls/src/http/ngx_http.c 2015-06-04 12:10:58.989314197 +0800
File to patch: