mac 鼓捣php 多版本切换

 php-v 和 phpinfo()不一样

1.切换httpd.conf 里面的.so文件

2.sudo vi ~/.zshrc 切换

export PATH="/usr/local/opt/php@7.1/bin:$PATH"
export PATH="/usr/local/opt/php@7.1/sbin:$PATH"
#export PATH="/usr/local/opt/php@7.0/bin:$PATH"
#export PATH="/usr/local/opt/php@7.0/sbin:$PATH"

 

  

posted @ 2018-08-30 11:39  lei12138  阅读(149)  评论(0编辑  收藏  举报