[root@localhost openresty-1.11.2.1]# patch -p1 < /root/nginx_upstream_check_module/check_1.11.1+.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 --git src/http/modules/ngx_http_upstream_hash_module.c src/http/modules/ngx_http_upstream_hash_module.c
|--- src/http/modules/ngx_http_upstream_hash_module.c 2016-05-31 15:43:51.000000000 +0200
|+++ src/http/modules/ngx_http_upstream_hash_module.c 2016-06-22 17:20:19.553955295 +0200
我是用最新版本的OpenResty,在与nginx_upstream_check_module结合时出现错误?再进行patch时出现错误: [root@localhost openresty-1.11.2.1]# patch -p1 < /root/nginx_upstream_check_module/check_1.11.1+.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 --git src/http/modules/ngx_http_upstream_hash_module.c src/http/modules/ngx_http_upstream_hash_module.c |--- src/http/modules/ngx_http_upstream_hash_module.c 2016-05-31 15:43:51.000000000 +0200 |+++ src/http/modules/ngx_http_upstream_hash_module.c 2016-06-22 17:20:19.553955295 +0200
Hello.理解 patch 的用法哈, 对于 OR,你需要在 openresty-1.11.2.2/bundle/nginx-1.11.2 里打 patch,同时注意 1.11 的 patch 能否用到 1.11.2 上:)在 2016年12月6日星期二 UTC+8下午4:35:16,han liu写道:我是用最新版本的OpenResty,在与nginx_upstream_check_module结合时出现错误?再进行patch时出现错误: [root@localhost openresty-1.11.2.1]# patch -p1 < /root/nginx_upstream_check_module/check_1.11.1+.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 --git src/http/modules/ngx_http_upstream_hash_module.c src/http/modules/ngx_http_upstream_hash_module.c |--- src/http/modules/ngx_http_upstream_hash_module.c 2016-05-31 15:43:51.000000000 +0200 |+++ src/http/modules/ngx_http_upstream_hash_module.c 2016-06-22 17:20:19.553955295 +0200
我在openresty-1.11.2.2/bundle/nginx-1.11.2里面打path貌似也不行,感觉像ngx_http_upstream_hash_module.c 里面有不相同的地方,所以导致了此问题。不清楚应该如何解决?在 2016年12月6日星期二 UTC+8下午10:39:41,detailyang写道:Hello.理解 patch 的用法哈, 对于 OR,你需要在 openresty-1.11.2.2/bundle/nginx-1.11.2 里打 patch,同时注意 1.11 的 patch 能否用到 1.11.2 上:)在 2016年12月6日星期二 UTC+8下午4:35:16,han liu写道:我是用最新版本的OpenResty,在与nginx_upstream_check_module结合时出现错误?再进行patch时出现错误: [root@localhost openresty-1.11.2.1]# patch -p1 < /root/nginx_upstream_check_module/check_1.11.1+.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 --git src/http/modules/ngx_http_upstream_hash_module.c src/http/modules/ngx_http_upstream_hash_module.c |--- src/http/modules/ngx_http_upstream_hash_module.c 2016-05-31 15:43:51.000000000 +0200 |+++ src/http/modules/ngx_http_upstream_hash_module.c 2016-06-22 17:20:19.553955295 +0200 --
openresty-1.11.2.2/bundle/nginx-1.11.2在这个目录里,我用patch -p0 < /path/to/nginx_upstream_check_module/check_1.11.1+.patch 成功了在 2016年12月7日 下午3:59,han liu <7415...@qq.com>写道:我在openresty-1.11.2.2/bundle/nginx-1.11.2里面打path貌似也不行,感觉像ngx_http_upstream_hash_module.c 里面有不相同的地方,所以导致了此问题。不清楚应该如何解决?在 2016年12月6日星期二 UTC+8下午10:39:41,detailyang写道:Hello.理解 patch 的用法哈, 对于 OR,你需要在 openresty-1.11.2.2/bundle/nginx-1.11.2 里打 patch,同时注意 1.11 的 patch 能否用到 1.11.2 上:)在 2016年12月6日星期二 UTC+8下午4:35:16,han liu写道:我是用最新版本的OpenResty,在与nginx_upstream_check_module结合时出现错误?再进行patch时出现错误: [root@localhost openresty-1.11.2.1]# patch -p1 < /root/nginx_upstream_check_module/check_1.11.1+.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 --git src/http/modules/ngx_http_upstream_hash_module.c src/http/modules/ngx_http_upstream_hash_module.c |--- src/http/modules/ngx_http_upstream_hash_module.c 2016-05-31 15:43:51.000000000 +0200 |+++ src/http/modules/ngx_http_upstream_hash_module.c 2016-06-22 17:20:19.553955295 +0200 --