借鉴:http://bbs.qcloud.com/forum.php?mod=viewthread&tid=25656&page=1
步骤: # yum install epel-release # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm # rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
成功了。 # php -v PHP 5.6.40 (cli) (built: Jan 9 2019 12:34:16) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans |