从PHP7.1.2升级到7.1.19显示成功,但实际没升级

问答中心分类: PHP从PHP7.1.2升级到7.1.19显示成功,但实际没升级
无住 asked 6 年 ago

[root@iZwz9i89o2n9bg60o5rwl1Z oneinstack]# ./upgrade.sh php #######################################################################
# OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+ #
# Upgrade Software versions for OneinStack #
# For more information please visit https://oneinstack.com #
####################################################################### Current PHP Version: 7.1.2 Please input upgrade PHP Version: 7.1.19
Download [php-7.1.19.tar.gz] successfully!
[php-7.1.19.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
[fpm-race-condition.patch] found
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git sapi/fpm/fpm/events/epoll.c sapi/fpm/fpm/events/epoll.c
|index c9c7f1f..3676816 100644
|--- sapi/fpm/fpm/events/epoll.c
|+++ sapi/fpm/fpm/events/epoll.c
--------------------------
File to patch: /usr/local/php71
File /usr/local/php71 is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file /usr/local/php71.rej
~/oneinstack/src/php-7.1.19 ~/oneinstack/src ~/oneinstack
make: *** No rule to make target `clean'. Stop.
configure: error: cannot find sources (README.GIT-RULES) in . or ..
make: *** No targets specified and no makefile found. Stop.
Stoping php-fpm...
Gracefully shutting down php-fpm . done
make: *** No rule to make target `install'. Stop.
Starting php-fpm...
Starting php-fpm done
You have successfully upgrade from 7.1.2 to 7.1.19
[root@iZwz9i89o2n9bg60o5rwl1Z oneinstack]# php -v
PHP 7.1.2 (cli) (built: Feb 19 2017 18:39:45) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.2, Copyright (c) 1999-2017, by Zend Technologies

2 Answers
oneinstack answered 6 年 ago
php-7.1.19.tar.gz 下载不完整,建议提前下载到src目录下:

cd oneinstack/src
wget http://php.net/distributions/php-7.1.19.tar.gz

Ang answered 6 年 ago
我从7.2.6用upgrade.sh升级的,第一次也没升成,不过再运行一次代码,就是时间比较长吧,最后升级成功。但代价是CPU被锁了,超量。下次换一台不那么穷的内存的机器。