Linux jdk环境变量配置
不修改全局/etc/profile文件,因为这个文件必须root权限
当前用户下~/.bash_profile命令,打开vi隐藏文件
#export PATH
export JAVA_HOME=/home/appuser/app/jdk1.8.0_91
export JAVA_BIN=$JAVA_HOME/bin
export JAVA_LIB=$JAVA_HOME/lib
export CLASSPATH=.:$JAVA_LIB/tools.jar:$JAVA_LIB/dt.jar
export PATH=$JAVA_BIN:$PATH
source ~/.bash_profile
java -version
相关推荐
昭君出塞 2020-05-25
xiaohouye 2020-05-06
linuxisperfect 2019-12-23
87530399 2014-12-08
wintelx 2014-12-05
farwang 2015-03-04
MAC2007 2020-06-16
liangston 2020-06-14
hanshangzhi 2020-04-30
81510598 2020-02-22
89236831 2020-01-05
86206132 2020-01-04
85206633 2019-12-29
chaoxiao 2019-12-13
WillowChen 2010-02-15