![](/style/images/good.png)
1
![](/style/images/bad.png)
更新Mac的PHP默认版本
source link: https://petrie.github.io/post/2017-04-10-mac-php-version/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
更新Mac的PHP默认版本
2017-04-10
类*nx系统,系统默认软件的安装位置
/usr/bin
非系统默认,brew安装的软件安装位置
/usr/local/bin
brew安装指定版本php后,执行一下命令,设置新版本为默认php版本
export PATH="$(brew --prefix php56)/bin:$PATH"
export PATH="$(brew --prefix php56)/sbin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK