You are here

CentOS5.5 安装Tomcat6

最近需要在一个老版本的服务器上面,安装Tomcat6.
1, 安装 Yum Priorities
# yum install yum-priorities

2安装EPEL i386 YUM 库
# rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

3安装RPMForge i386 YUM 库
# rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

4安装JPackage项目库

# cd /etc/yum.repos.d/
# wget http://jpackage.org/jpackage50.repo

5安装 Java
yum install java

6安装 Tomcat6

# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

7在CATALINA_TMPDIR引用中添加JAVA_HOME
# vi /usr/share/tomcat6/conf/tomcat6.conf

JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/"

启动Tomcat 6 服务

# service tomcat6 start

论坛:

Drupal版本: