viernes, 29 de noviembre de 2013

Instalar Tomcat6

yum install tomcat6*
Comprobar cual es la JRE
ls /usr/lib/jvm

vim /etc/rc.local
Agregar esta linea
export JAVA_HOME=/usr/lib/jvm/jre-1.6.0

vim /etc/tomcat6/tomcat-users.xml

Contenido del archivo
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="viewer"/>
<role rolename="admin"/>
<role rolename="tomcat"/>
<user username="admin" password="admin" roles="manager-gui,manager"/>
<user username="viewer" password="viewer" roles="admin,tomcat,manager-gui,manager-script,manager"/>
</tomcat-users>
rpm -qa |grep tomcat6 
tomcat6-admin-webapps-6.0.24-57.el6_4.noarch
tomcat6-el-2.1-api-6.0.24-57.el6_4.noarch
tomcat6-servlet-2.5-api-6.0.24-57.el6_4.noarch
tomcat6-lib-6.0.24-57.el6_4.noarch
tomcat6-6.0.24-57.el6_4.noarchtomcat6-docs-webapp-6.0.24-57.el6_4.noarch
tomcat6-jsp-2.1-api-6.0.24-57.el6_4.noarch
tomcat6-webapps-6.0.24-57.el6_4.noarchtomcat6-javadoc-6.0.24-57.el6_4.noarch
rpm -qa |grep java
tzdata-java-2013g-1.el6.noarch
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
java_cup-0.10k-5.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.65.1.11.14.el6_4.x86_64
tomcat6-javadoc-6.0.24-57.el6_4.noarch

No hay comentarios:

Publicar un comentario