Open weilai201 opened 7 years ago
很大可能是使用patche的命令不对,你可以尝试下这个命令:
patch p0 < /tmp/nginx_tcp_proxy_module-master/tcp.patch
还是不行 @cell13
@Andyliwr 你需要看下你得nginx版本,有的nginx版本用p1,有的用p0就可以。具体可以参考下patch命令的用法。如果你对nginx版本没有特殊的要求,可以使用我下面的命令进行安装操作:
wget -P /opt/ http://nginx.org/download/nginx-1.13.3.tar.gz wget -P /opt/ https://github.com/yaoweibin/nginx_upstream_check_module/archive/master.zip tar -xzvf /opt/nginx-1.13.3.tar.gz -C /opt/ unzip master yum -y install gcc gcc-c++ yum -y install zlib zlib-devel pcre pcre-devel yum -y install openssl openssl-devel yum -y install unzip git cd /opt/ cd /opt/nginx-1.13.3 patch -p0 < ../nginx_upstream_check_module-master/check_1.11.5+.patch ./configure make && make install
OS version: CentOS Linux release 7.3.1611 (Core) Tengine version: Tengine/2.1.1 (nginx/1.6.2)
下载最新版本的nginx_tcp_proxy_module 后,解压。然后下载tengine 解压。 切换到tengine解压目录,执行“patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch ”
[root@nginx1 tengine]# patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch patching file p1 Hunk #1 FAILED at 66. 1 out of 1 hunk FAILED -- saving rejects to file p1.rej patching file p1 Hunk #1 FAILED at 29. Hunk #2 FAILED at 36. 2 out of 2 hunks FAILED -- saving rejects to file p1.rej patching file p1 Hunk #1 FAILED at 32. Hunk #2 FAILED at 42. 2 out of 2 hunks FAILED -- saving rejects to file p1.rej patch: **** Can't reopen file p1 : No such file or directory
不知道是什么原因?
有解决吗,我的也是这个问题?不知道什么原因。
OS version: CentOS Linux release 7.3.1611 (Core) Tengine version: Tengine/2.1.1 (nginx/1.6.2)
下载最新版本的nginx_tcp_proxy_module 后,解压。然后下载tengine 解压。 切换到tengine解压目录,执行“patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch ”
不知道是什么原因?