标签:
1.检查是否已安装
yum -y list java*
Loaded plugins: fastestmirror
base | 1.1 kB 00:00
base/primary | 995 kB 00:00
base 2789/2789
extras | 2.1 kB 00:00
extras/primary_db | 164 kB 00:20
updates | 1.9 kB 00:00
updates/primary_db | 422 kB 00:01
Available Packages
java-1.4.2-gcj-compat.i386 1.4.2.0-40jpp.115 base
java-1.4.2-gcj-compat-devel.i386 1.4.2.0-40jpp.115 base
java-1.4.2-gcj-compat-javadoc.i386 1.4.2.0-40jpp.115 base
java-1.4.2-gcj-compat-src.i386 1.4.2.0-40jpp.115 base
java-1.6.0-openjdk.i386 1:1.6.0.0-5.1.13.3.el5_10 updates
java-1.6.0-openjdk-demo.i386 1:1.6.0.0-5.1.13.3.el5_10 updates
java-1.6.0-openjdk-devel.i386 1:1.6.0.0-5.1.13.3.el5_10 updates
java-1.6.0-openjdk-javadoc.i386 1:1.6.0.0-5.1.13.3.el5_10 updates
java-1.6.0-openjdk-src.i386 1:1.6.0.0-5.1.13.3.el5_10 updates
java-1.7.0-openjdk.i386 1:1.7.0.55-2.4.7.1.el5_10 updates
java-1.7.0-openjdk-demo.i386 1:1.7.0.55-2.4.7.1.el5_10 updates
java-1.7.0-openjdk-devel.i386 1:1.7.0.55-2.4.7.1.el5_10 updates
java-1.7.0-openjdk-javadoc.i386 1:1.7.0.55-2.4.7.1.el5_10 updates
java-1.7.0-openjdk-src.i386 1:1.7.0.55-2.4.7.1.el5_10 updates
java_cup.i386 1:0.10-0.k.6jpp.1 base
java_cup-javadoc.i386 1:0.10-0.k.6jpp.1 base
java_cup-manual.i386 1:0.10-0.k.6jpp.1 base
javacc.i386 4.0-3jpp.3 base
javacc-demo.i386 4.0-3jpp.3 base
javacc-manual.i386 4.0-3jpp.3 base
2.安装JDK
yum -y install java-1.7.0-openjdk*
3. 下载tomcat
wget http://apache.opencas.org/tomcat/tomcat-7/v7.0.69/bin/apache-tomcat-7.0.69.tar.gz
4.解压
tar -zxvf apache-tomcat-7.0.69.tar.gz
标签:
原文地址:http://www.cnblogs.com/semin/p/5439790.html