码迷,mamicode.com
首页 > 系统相关 > 详细

Linux上安装JDK7和tamcat7

时间:2016-04-27 18:33:02      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:

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

 

Linux上安装JDK7和tamcat7

标签:

原文地址:http://www.cnblogs.com/semin/p/5439790.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!