1.编辑bash_profile 文件
vi ~/.bash_profile
2. 追加变量
export PATH
alias php = /home/php/bin/php
3.重新加载bash_profile文件
source ~/.bash_profile
1.编辑bash_profile 文件
vi ~/.bash_profile
2. 追加变量
export PATH
alias php = /home/php/bin/php
3.重新加载bash_profile文件
source ~/.bash_profile