问答中心分类: LinuxUbuntu 18.04 Nginx 从1.15.2 升级1.15.3 失败
ookangzheng 提问 2年 前

我的 oneinstack有先运行upgrade.sh 第7选项更新到最新脚本再执行更新Nginx
错误讯息:
Please input upgrade Nginx Version(default: 1.14.0): 1.15.3
[openssl-1.0.2p.tar.gz] found
[pcre-8.42.tar.gz] found
Download [nginx-1.15.3.tar.gz] successfully!
[nginx-1.15.3.tar.gz] found
Press Ctrl+c to cancel or Press any key to continue...
patch: **** Can't change to directory nginx-1.14.0 : No such file or directory
~/oneinstack/src/nginx-1.15.3 ~/oneinstack/src ~/oneinstack/src ~/oneinstack/src ~/oneinstack ~/oneinstack
make: *** No rule to make target 'clean'. Stop.
./configure: error: invalid option " --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-openssl=../openssl-1.0.2p --with-pcre=../pcre-8.42 --with-pcre-jit --with-ld-opt=-ljemalloc"
make: *** No targets specified and no makefile found. Stop.
Upgrade Nginx failed!

1 问题
oneinstack 回答 2年 前

请执行 /root/oneinstack/upgrade.sh oneinstack 之后重新尝试升级nginx!