Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

prefer ntpd over ntpdate since ntpdate is deprecated

share|improve this answer
add comment

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.

share|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. –  SvW Aug 9 '10 at 11:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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