Chinaunix

标题: nginx添加nginx_upstream_check_module-master等模块报错问题 [打印本页]

作者: 像风一样C    时间: 2016-06-21 10:07
标题: nginx添加nginx_upstream_check_module-master等模块报错问题
大家好,有个问题,每次部署系统环境都遇到不一样的问题。请教下这个问题。
安装nginx,添加模块:
nginx_upstream_check_module-master
nginx_tcp_proxy_module
nginx_upstream_check_module-master


在执行path命令时出错,如下:
# patch -p1 < /home/tools/nginx-1.6.2/nginx_upstream_check_module-master/check_1.5.12+.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c
|index 041883f..b1bc7d0 100644
|--- a/src/http/modules/ngx_http_upstream_ip_hash_module.c
|+++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c
--------------------------
File to patch:
# patch -p1 < /home/tools/nginx-1.6.2/nginx_tcp_proxy_module/tcp.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
|index c0485c6..bfb1f5c 100644
|--- a/src/core/ngx_log.c
|+++ b/src/core/ngx_log.c
--------------------------
File to patch:


请问各位大虾,这是啥问题呢,另外一台服务器是正常的,系统环境也一样。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2