# uname –a //是64位系统,那么我们选择64位的JDKLinux 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux2、 下载tomcat7和jdk1.7 Tarbag专门放源码包,software专门放解压后的软件包
# mkdir /usr/local/src/tarbag# mkdir /usr/local/src/software# cd /usr/local/src/tarbag# wget http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-7/v7.0.22/bin/apache-tomcat-7.0.22.tar.gz# wgethttp://download.oracle.com/auth/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-x64.tar.gz3、 安装jdk(配置java环境)
# tar -xzvf jdk-7u1-linux-x64.tar.gz# mv jdk1.7.0_01/ /usr/local/java配置java环境
# vi /etc/profile加上以下信息export JAVA_HOME=/usr/local/javaCLASSPATH=/usr/local/java/lib/dt.jar:/usr/local/java/lib/tools.jarPATH=/usr/local/java/bin:$PATHexport PATH JAVA_HOME CLASSPATH查看是否成功
# source /etc/profile# java -version //看到1.7的字样说明安装成功了java version "1.7.0_01"Java(TM) SE Runtime Environment (build 1.7.0_01-b08)Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)4、 安装tomcat 7
# tar –xzvf apache-tomcat-7.0.22.tar.gz# mv apache-tomcat-7.0.22 /usr/local/tomcat75、 启动关闭tomcat7 启动
# /usr/local/tomcat7/bin/startup.sh关闭
# /usr/local/tomcat7/bin/shutdown.sh6、 开启tomcat测试 打开 [caption id="attachment_3033" align="alignnone" width="558"] tomcat7安装[/caption] 转载请注明出处:http://www.ttlsa.com/html/3032.html