打开
[root@wangde ~]# vi .bash_profile
修改如下:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
JAVA_HOME=/usr/java/jdk1.6.0_25
PATH=$PATH:$HOME/bin:/bin:/usr/bin:/usr/sbin:$JAVA_HOME/bin
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH
export CLASSPATH
export JAVA_HOME
unset USERNAME
~
~
~
~
~
~
按esc : wq 保存。
执行source
[root@wangde ~]# source .bash_profile。
liunx 环境变量配置
猜你喜欢
转载自wangde.iteye.com/blog/1013316
今日推荐
周排行