1

更新Mac的PHP默认版本

 2 years ago
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"

Author petrie

LastMod 2017-04-10

License CC BY-NC-ND 4.0

Prev Next

Powered by Hugo | Theme - Jane

© 2015 - 2020 petrie


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK