修改~/.
bash_profile文件或
.zshrc文件
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH
source ~/.bash_profile
转自: http://stackoverflow.com/questions/27011941/mac-osx-php-and-xampp-path-issue
修改~/.
bash_profile文件或
.zshrc文件
export XAMPP_HOME=/Applications/XAMPP
export PATH=${XAMPP_HOME}/bin:${PATH}
export PATH
source ~/.bash_profile
转自: http://stackoverflow.com/questions/27011941/mac-osx-php-and-xampp-path-issue