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?


setup ntp http://www.debianadmin.com/ntp-server-and-client-configuration-in-debian.html

| improve this answer | |

prefer ntpd over ntpdate since ntpdate is deprecated

| improve this answer | |

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.

| 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. – Sven Aug 9 '10 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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