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

8/8/14

Configurar Hora RHEL

http://www.fir3net.com/Redhat-/-Fedora/how-to-set-the-time-date-and-timezone-in-centos.html
http://serverfault.com/questions/368602/how-do-i-update-a-centos-servers-time-from-an-authoritative-time-server


MANUALMENTE:

rm /etc/localtime
ln -s /usr/share/zoneinfo/GMT /etc/localtime
date 072522172010
hwclock --systohc


[root@Fileserver ~]# date
Sun Jul 25 22:38:47 GMT 2010
[root@Fileserver ~]# hwclock
Sun 25 Jul 2010 10:38:51 PM GMT  -0.125883 seconds


Instalar NTP

yum install ntp
chkconfig ntpd on
ntpdate pool.ntp.org
service ntpd start
# sync hw clock 
hwclock --systohc
#test
date 

resumen en una linea
date && yum -y install ntp && chkconfig ntpd on && ntpdate pool.ntp.org && service ntpd start && hwclock --systohc && date