在CentOS的profile文件中配置环境变量

# idea jdk7 settings start

#JAVA_HOME=/usr/local/jdk/jdk1.7.0_79
#JRE_HOME=$JAVA_HOME/jre
#PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
#CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/dt.jar
#export JAVA_HOME JRE_HOME PATH CLASSPATH # idea jdk7 settings end # idea jdk8 settings start JAVA_HOME=/usr/local/jdk/jdk1.8.0_65
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/dt.jar
export JAVA_HOME JRE_HOME PATH CLASSPATH # idea jdk8 settings end ### idea start PATH=/usr/local/cmake/cmake-3.2.3/bin:$PATH
PATH=/usr/local/mysql/mysql5.6.24/bin:/usr/local/mysql/mysql5.6.24/lib:$PATH
export PATH ### idea end ################### zookeeper config start - hapday ######################## export ZOOKEEPER_HOME=/usr/local/zookeeper/zookeeper-3.4.8
export PATH=$ZOOKEEPER_HOME/bin:$PATH
export PATH ################### zookeeper config start - hapday ########################

  

上一篇:Android 适配知识点


下一篇:Linux解压/压缩命令——tar、gz、tar.gz、tgz、bz2、tar.bz2、Z、zip、rar、lha