Centos6安装jdk教程
Centos6安装jdk教程

一、演示系统版本:[root@Centos ~]# cat /etc/redhat-releaseCentOS release 6.6 (Final)安装前准备:下载jdk7u79linuxx64.tar.gzxftp上传到服务器安装1)解压jdktar -zxvf jdk7u79linuxx64.tar.gz2)配置环境变量vi /etc/profile添加一下内容到最后:JAVA_HOME=/jdk1.7.0_79 JRE_HOME=/jdk1.7.0_79/jre CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools. ......