开源
CentOS环境变量文件 标签描述

修改环境变量的六种方法: ①修改/etc/profile文件,将影响全局,所有用户。 使修改生效,即source/etc/profile ②修改/etc/environment文件,将影响全局。/etc/environment文件与/etc/profile文件的区别是:/etc/environment设置的是系统的环境,而/etc/profile设置的是所有用户的环境,即/etc/environment与用户无关,在系统启动时运行。在/etc/environment文件中添加 PATH=/someapplication/bin:$PATH ③修改/.bash_profile(首选),将影响当...