标签:home pat span acl lte linux session 配置方法 选择
配置文件及执行顺序:
1> /etc/profile,系统级,会调用 /etc/bash.bashrc
2> /etc/enviroment,系统级,设置系统级环境变量
3> ~/.profile, 用户级
4> ~/.bashrc,用户级别
5> ~/.bash_profile or ~./bash_login- If one of these file exist, bash executes it rather then "~/.profile" when it is started as a login shell. (Bash will prefer "~/.bash_profile" to "~/.bash_login"). However, these files won‘t influence a graphical session by default.
配置方法:
export PATH="$PATH:/my_new_path"
Java 环境从openJava 切换到oracl Java,除设置环境变量外,需进行以下操作:
1> 标记新的Java环境
sudo update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 300
2> 选择标识为300的
sudo update-alternatives --config java
sudo update-alternatives --config javaC
标签:home pat span acl lte linux session 配置方法 选择
原文地址:http://www.cnblogs.com/JLea/p/7574159.html