VPS侦探论坛

 找回密码
 注册
查看: 4452|回复: 4

军哥,升级Nginx过程,由于下载太慢,手工中断了,怎么再进行升级?

[复制链接]
发表于 2016-12-21 21:56:21 | 显示全部楼层 |阅读模式

军哥,升级Nginx过程,由于下载太慢,手工中断了,怎么再进行升级?

错误提示如下:

============================check files==================================
nginx-1.7.8.tar.gz [found]
============================check files==================================
Uncompress nginx-1.7.8.tar.gz...


gzip: stdin: unexpected end of file
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: Error is not recoverable: exiting now
cd nginx-1.7.8...
./configure: line 10: auto/options: No such file or directory
make: *** 没有指明目标并且找不到 makefile。 停止。
cp: 无法获取"objs/nginx" 的文件状态(stat): 没有那个文件或目录
Test nginx configure file...
include/upgrade_nginx.sh: line 58: /usr/local/nginx/sbin/nginx: 没有那个文件或目录
upgrade...
make: *** 没有规则可以创建目标“upgrade”。 停止。
======== upgrade nginx completed ======
Program will display Nginx Version......
include/upgrade_nginx.sh: line 65: /usr/local/nginx/sbin/nginx: 没有那个文件或目录



美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-22 10:06:42 | 显示全部楼层

回复 1# 的帖子



文件没有下载完整,重新运行升级脚本

你也可以将你自己下载的nginx的源码放到src目录下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-11-13 02:04:55 | 显示全部楼层

军哥 重新运行问题依旧出现,还是这个提示。
我使用的是1.5版本。。。。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-11-13 02:20:00 | 显示全部楼层



我也是升级过程太慢中断了下,然后就。。。无法再升级了。



补充下,现在 lnmp 版本是1.5的。

###################################################
Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 1
Current Nginx Version:.sh:行5: /usr/local/nginx/sbin/nginx: 没有那个文件或目录
You can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.14.0): 1.15.6
+---------------------------------------------------------+
|    You will upgrade nginx version to 1.15.6
+---------------------------------------------------------+

Press any key to start...or Press Ctrl+c to cancel

============================check files==================================
nginx-1.15.6.tar.gz [found]
============================check files==================================
openssl-1.0.2o.tar.gz [found]
Uncompress nginx-1.15.6.tar.gz...

gzip: stdin: unexpected end of file
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: Error is not recoverable: exiting now
cd nginx-1.15.6...
./configure: line 10: auto/options: No such file or directory
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有指明目标并且找不到 makefile。 停止。
mv: 无法获取"/usr/local/nginx/sbin/nginx" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"objs/nginx" 的文件状态(stat): 没有那个文件或目录
Test nginx configure file...
include/upgrade_nginx.sh:行70: /usr/local/nginx/sbin/nginx: 没有那个文件或目录
upgrade...
make: *** 没有规则可以创建目标“upgrade”。 停止。
Checking ...
Error: Nginx upgrade failed.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-11-13 02:38:01 | 显示全部楼层

问题已解决~!!


问题已解决,送给和我一样用户吧~!!

失败原因因为中断脚本,会导致文件被创建了,但是问题下载不完整,也就没办法解包编译通过。

如果你在升级过程由于其它原因中断了,或网络不好导致的,可以删除 src 目录下对应的 nginx 版本文件 然后再次运行。

脚本文件路径
/root/lnmp1.5/src/nginx-1.15.6.tar.gz

有的用户是放在 home 目录下,或是其它的目录下的,建议自己把版本号替换掉。

如lnmp 1.4 或其它的 则替换为
/root/lnmp1.4/src/nginx-1.15.6.tar.gz  这里的 1.15.6 是我开始没下载完或中断的文件,所以你的是多少就写多少。

删除命令为 rm /root/lnmp1.5/src/nginx-1.15.6.tar.gz
然后 yes


写的够清楚吧!!

另外网络不好的时候,建议使用 screen  命令进行,这样关闭终端都可以。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 11:21 , Processed in 0.026558 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表