CentOS 5.5 install Tomcat 6

以前装TomCat6,编译安装,还要配置很麻烦,现在用YUM直接在线安装,很简单,但是CentOs5.5的YUM源最新只支持TomCat5.5,所以贴一个TomCat6.0的yum安装方法。
   

1. yum install -y jpackage-utils
2. wget http://www.jpackage.org/jpackage17.repo
3. cat jpackage17.repo | sed 's/1\.7/5.0/' | sed 's/\[jpack/\[5jpack/' > /etc/yum.repos.d/jpackage5.repo
4. mv jpackage17.repo /etc/yum.repos.d/
5. yum makecache
6. yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps


tomcat 6 目录 /share/tomcat6/webapps

service tomcat6 start

你可能感兴趣的:(Install)