centos6,Installing Tomcat 6 on CentOS 5

Installing Tomcat 6 on CentOS 5
May be a niche post but after some fighting with my virtual server running CentOS 5 it boiled down to a really simple solution:
view sourceprint?
1 cd /etc/yum.repos.d
2 wget 'http://www.jpackage.org/jpackage50.repo'
3 yum update
4 yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
5 service tomcat6 start
If you have problems accessing the server from another machine you may need to do the following:
view sourceprint?
1 setup
2 "Firewall configuration"
3 "Customize"
4 "Other ports" 8080:tcp
5 "Ok"
6 service tomcat6 restart
UPDATE:
If you get a dependency error try this:
rpm -Uvh 'http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm'
More info:
http://plone.lucidsolutions.co.nz/linux/centos/jpackage-jpackage-utils-compatibility-for-centos-5.x
(update provided by Tony, thanks)
装完后,tomcat6 install path:
/usr/share/tomcat6
站点路径:/usr/share/tomcat6/webapps
默认情况下,webapps目录下没有任何内容,需要自己建立ROOT或者其他webapp
Tags:  centos6

延伸阅读

最新评论

发表评论