在.zshrc文件后面加上 export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH" 转载于:https://www.cnblogs.com/ailhc/p/7398408.html