26/8/14

Instalar Tomcat en Centos 6.5

http://www.vr4servers.com/tomcat6/

How to install & configure Tomcat 6 on Centos 6.5

login as root
yum update
yum install -y java
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

You can modify default port 8080 to 80 (if required)
vi /usr/share/tomcat6/conf/server.xml
connectionTimeout="20000"
redirectPort="8443" />

For tomcat admin modify file
vi /usr/share/tomcat6/conf/tomcat-users.xml
add line

in between &
Add permanent at start-up
chkconfig tomcat6 on
Start tomcat
service tomcat6 start
Add port on iptables
iptables -I INPUT -p tcp --dport 8o -j ACCEPT
service iptables save
service iptables restart

Open browser and add url or ip of your server in address bar
click on Tomcat Manager give username and password as you have added on the file tomact-users.xml as admin and tomcatpass

No hay comentarios:

Publicar un comentario