1、vim ~/.bash_profile
2、加入 alias php=/usr/local/php/bin/php (别名=安装的php命令)
3、source ~/.bash_profile
这样就可以使用了