1月 20, 2019 - 开发笔记 mac自带的php是7.1,然后我又brew php7.2,phpinfo 是php7.1的,php -v是7.2的?已关闭评论
mac自带的php是7.1,然后我又brew php7.2,phpinfo 是php7.1的,php -v是7.2的?
mac自带的php是7.1,然后我又brew php7.2,phpinfo 是php7.1的,php -v是7.2的,请问我怎么用7.2的?
php -v
PHP 7.2.1 (cli) (built: Jan 5 2018 17:34:14) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.6.0beta1, Copyright (c) 2002-2017, by Derick Rethans
php-fpm -v
PHP 7.1.19 (fpm-fcgi) (built: Aug 17 2018 18:03:20)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
你看到phpinfo是web页面上面看到的,用到php-fpm
执行一下命令:
1.brew services stop php71
2.brew services start php72