这里附上1.7jdk的下载地址,直接用迅雷既可以下载:
https://download.oracle.com/otn/java/jdk/7u80-b15/jdk-7u80-linux-x64.rpm
https://download.oracle.com/otn/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
其他版本的jdk下载:http://www.oracle.com/technetwork/java/javase/downloads/
需要注册,注册完后进行下载,免费的,登录后复制下载地址,
安装:
rpm包:rpm -ivh jdk-7****.rpm,安装后的默认路径为/usr/java/jdk1.7
tar包:tar -zxvf jdk-7u79-linux-x64.tar.gz,安装的路径就是自己解压的路径,比如我在/usr/local/java/解压,就在当前目录
另jdk环境变量配置:
#JAVA PATH export JAVA_HOME=/usr/local/java/jdk1.7 export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
一台服务器部署多个tomcat教程地址:https://www.cnblogs.com/jimmyTang-J/p/11372684.html