在系统中,有限使用当前用户的profile,然后再使用/etc/profile的配置,有时候为了环境变量当前用户有效,就可以直接配置到~/.bash_profile ,如果想所有的用户都生效,就配置到/etc/profile

#全局的
/etc/profile

#当前
~/.bash_profile

Centos当前账户下profile位置-yellowcong_当前用户