作者:mobiledu2502868793 | 来源:互联网 | 2022-12-10 14:04
我在opt / remi文件夹php56和php72中有两个版本的PHP,但是当我php -v
在cmd上时,它显示了PHP 5.6.24 (cli) (built: Jul 21 2016 07:33:38)
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.4.1, Copyright (c) 2002-2016, by Derick Rethans
如何将默认版本设置为PHP 7.2
1> Remi Collet..:
我在opt / remi文件夹php56和php72中有两个版本的PHP
如何将默认版本设置为PHP 7.2
SCL专为并行安装而设计,因此请勿更改基本系统中的默认版本
启用收藏后,将使用该版本
$ scl enable php72 bash
$ php -v
PHP 7.2.8 (cli) (built: Jul 17 2018 05:35:43) ( NTS )
如果要使7.2为默认版本(基本系统),则应根据向导对“ 默认/单个版本 ”的说明进行安装(并保留5.6作为辅助版本)