如何将默认的PHP版本设置为7.3.32,
创建软链接指向7.3版本,关键命令:ln -sf /www/server/php/73/bin/php /usr/bin/php
然后再查看PHP版本验证一下结果
[root@localhost ~]# ln -sf /www/server/php/73/bin/php /usr/bin/php
[root@localhost ~]# php -v
PHP 7.3.32 (cli) (built: Apr 25 2024 22:38:19) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.32, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.32, Copyright (c) 1999-2018, by Zend Technologies
[root@localhost ~]#