can't find file to patch at input line 3 错误原因

来源:互联网 发布:淘宝所有分类怎么去掉 编辑:程序博客网 时间:2024/06/06 15:45

执行 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
阅读全文
0 0
原创粉丝点击