Thursday, June 21, 2007

How to set time on Linux server ?

How to set time on Linux server ?

Just install ntp and setup a cronjob to run every hours ro so

Yum install ntp
ok
crontab -e
i
* * * * /usr/sbin/ntpdate -s ... ... ... ...
ZZ to save

Or just run from the command line once ntp is installed
/usr/sbin/ntpdate ... ... ... ...


/etc/ntpd.conf


crontab -e

0 * * * * /usr/sbin/ntpdate -s 204.123.2.72 204.34.198.40 128.252.19.1 192.5.41.40


Thats it .....your server time has been set now ......Njoy Smiley