执行 patch < nginx-proxy.diff 命令,将文件修改应用到文件中,报告如下错误:
can’t find file to patch at input line 3
Perhaps you should have used the -p or –strip option?
原因:
目标文件没有找到。也就会如下DEMO代码第一行的文件 nginx-proxy.conf 文件没有找到,或者这里拼写错误,或者文件夹路径错误导致。
--- nginx-proxy.conf 2017-10-30 15:37:35.000000000 +0800
+++ nginx-proxy.new 2017-10-30 15:40:14.000000000 +0800