Web Hosting Talk







View Full Version : How to set time on server?


petedes
04-28-2004, 01:01 PM
Hello

I have a dedicated server running RH 7.3 and the time on the server is fast. I use the command 'date -s' to reset it but after 2 weeks the time is fast again by a few minutes. Any idea how to correct this and set the time so that it does not keep getting fast?

Thanks
Pete

DeltaAnime
04-28-2004, 01:08 PM
Check out NTP, it'll sync you within like, 100th's of a second, from what i've seen.

http://www.ntp.org/

Setup a cron job that'll hit up a server every day or so.

~Francisco

jdoverclock
04-28-2004, 01:14 PM
There's an old thread on WHT dealing with this subject.
http://www.webhostingtalk.com/archive/thread/232155-1.html

Hope that helps you :)

TheTrance
04-29-2004, 12:54 AM
ntpdate time.nist.gov as root

Allwin A
04-29-2004, 06:54 AM
IF you have Cpanel on your server, you can set time from within WHM and also sync it with the timeserver :)

ranjitbhar
04-29-2004, 07:00 AM
rdate -s time.nist.gov

If you have rdate installed as root!