mac上使用php7.0 以及其它版本的体会:
1.
Brew PHP Switcher :用户切换mac下的php版本。
安装:#brew install brew-php-switcher
具体切换:#brew-php-switcher
56 活着53,54,55,70
具体mac截图:
AndyYudeMacBook-Pro:~ AndyYu$ brew-php-switcher 56
Switching to php56
Switching your shell
Unlinking /usr/local/Cellar/php56/5.6.23... 0 symlinks removed
Unlinking /usr/local/Cellar/php70/7.0.8... 17 symlinks removed
Linking /usr/local/Cellar/php56/5.6.23... 17 symlinks created
You will need sudo power from now on
Switching your apache conf
Restarting apache
All done!
注意标红字体会发现,其实主要是对链接符号的连接和断开来做指向。
本文介绍如何使用BrewPHPSwitcher在Mac上轻松切换PHP版本,并通过具体示例展示了从PHP7.0切换到PHP5.6的过程及操作细节。

1018

被折叠的 条评论
为什么被折叠?



