标签:att local classpath 并发 其他 tac 核心 轻量级应用 应用服务器
vim /etc/profile.d/java.sh //加入如下配置
1.
2. JAVA_HOME=/usr/local/jdk1.8.0_31
3. JAVA_BIN=/usr/local/jdk1.8.0_31/bin
4. JRE_HOME=/usr/local/jdk1.8.0_31/jre
5. PATH=$PATH:/usr/local/jdk1.8.0_31/bin:/usr/local/jdk1.8.0_31/jre/bin
6. CLASSPATH=/usr/local/jdk1.8.0_31/jre/lib:/usr/local/jdk1.8.0_31/lib:/usr/local/jdk1.8.0_31/jre/lib/charsets.jar
source /etc/profile.d/java.sh
如果以上配置成功,则下面的命令可以看到java的版本:
java -version
cd /usr/local/src/
wget http://www.aminglinux.com/bbs/data/attachment/forum/jdk-6u23-linux-i586.bin
chmod a+x jdk-6u23-linux-i586.bin
./jdk-6u23-linux-i586.bin
JAVA_HOME=/usr/local/jdk1.6.0_23/
JAVA_BIN=/usr/local/jdk1.6.0_23/bin
JRE_HOME=/usr/local/jdk1.6.0_23/jre
PATH=$PATH:/usr/local/jdk1.6.0_23/bin:/usr/local/jdk1.6.0_23/jre/bin
CLASSPATH=/usr/local/jdk1.6.0_23/jre/lib:/usr/local/jdk1.6.0_23/lib:/usr/local/jdk1.6.0_23/jre/lib/charsets.jar
export JAVA_HOME JAVA_BIN JRE_HOME PATH CLASSPATH
标签:att local classpath 并发 其他 tac 核心 轻量级应用 应用服务器
原文地址:http://blog.51cto.com/amazing61/2063908