升级nginx过程 file to patch,怎么操作

问答中心分类: Linux升级nginx过程 file to patch,怎么操作
vee asked 3年 ago
Current Nginx Version: 1.12.2
Please input upgrade Nginx Version(default: 1.14.2): 1.14.2
[openssl-1.1.1a.tar.gz] found
[pcre-8.42.tar.gz] found
Download [nginx-1.14.2.tar.gz] successfully!
[nginx-1.14.2.tar.gz] found
Press Ctrl+c to cancel or Press any key to continue...
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- auto/cc/gcc.orig 2007-03-22 08:34:53.000000000 -0600
|+++ auto/cc/gcc 2007-03-22 08:58:47.000000000 -0600
--------------------------
File to patch:

1 Answers
oneinstack answered 3年 ago

nginx-1.14.2.tar.gz下载不完整,建议升级前先将源码下载对应目录

cd oneinstack/src
wget -c http://nginx.org/download/nginx-1.14.2.tar.gz
cd ..
./upgrade.sh #再升级nginx