Centos yum安装tomcat6

OS:Centos66

预先已经安装java jdk

安装步骤:

1 安装所需要的repo库

yum install yum-priorities
rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uvh http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-utils-5.0.0-7.jpp6.noarch.rpm

这里epel的库可能找不到,需要查一下之前的文章,提到epel6.8的安装


2 安装tomcat

yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps


3 启动tomcat6

service tomcat6 start


翻译自:

https://newpush.com/2011/10/how-to-install-tomcat-6-on-rhel-6-or-centos-6/

你可能感兴趣的:(Centos yum安装tomcat6)