linux设置环境变量
查看当前环境变量echo $PATH
添加临时环境变量export PATH=/usr/local/bin:$PATH
添加全局环境变量vim /etc/profile
export PATH=$PATH:/usr/local/php/bin
source /etc/profile
对当前用户修改vi /用户目录/.bash_profile
查看当前环境变量echo $PATH
添加临时环境变量export PATH=/usr/local/bin:$PATH
添加全局环境变量vim /etc/profile
export PATH=$PATH:/usr/local/php/bin
source /etc/profile
对当前用户修改vi /用户目录/.bash_profile