Hi I am using the Linux machine. I am configuring it for the session repication of the tomcat. My requirement is that both the machine must be synchronise with some standard time. May be with some internate time.If any one ans me how to synchronise both the machine?
thanks.

link|improve this question

0% accept rate
feedback

3 Answers

prefer ntpd over ntpdate since ntpdate is deprecated

link|improve this answer
feedback

Use an NTP server and ntpdate is an option: ntpdate -u pool.ntp.org Run this as a crontab every minute on both servers.

EDIT: I'm not sure if this option is available on Debian. Apologies if not, let me know and I'll delete.

link|improve this answer
3  
It's available. I still prefer using an ntp server though, as ntpdate jumps through the time when the clock is wrong while the server adjusts the clock speed until the time is correct. Jumping through the time is bad, especially when it goes backward, as times in log files will be ambiguous and some programs have problems with non-continuous time. – SvenW Aug 9 '10 at 11:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.