Transfer: Linux Network Time Synchronization
When a long running Linux server, the system will time there are some errors, you can generally date time setting command, but when doing other operations database cluster fragmentation time difference between multiple machines is required, this time ntpdate time synchronization is required.
1 yum install -y ntpdate
ntpdate syntax:
1 ntpdate [-46bBdqsuv] [-a key#] [-e delay] [-k file] [-p samples] [-o version#] [-t timeo] [-U username] server
Example:
1 ntpdate -u 210.72 . 145.44 # be input the blank: Chinese official servers of the National Time Service Center.
Note: If adding -u parameters, the following tips: no server suitable for synchronization found. As can be seen from the man ntpdate -u parameters can be synchronized with the host through a firewall.
Common ntp server:
- China National Time Service Center: 210.72.145.44
- NTP server (Shanghai): ntp.api.bz
- United States: time.nist.gov
- Fudan: ntp.fudan.edu.cn
- Microsoft granted host (United States): time.windows.com
- Large police station Time Service Center (Taiwan): asia.pool.ntp.org
Tested Chinese National Time Service Center and Shanghai NTP server can properly synchronize the time and attention necessary to add -u parameters!
Here are some of the NTP server address:
Name |
IP | Location |
210.72.145.44 | 210.72.145.44 | China (when the National Service Center) |
133.100.11.8 | 133.100.11.8 | Japan (Fu 冈大 Science) |
time-a.nist.gov | 129.6.15.28 | NIST,Gaithersburg,Maryland |
time-b.nist.gov | 129.6.15.29 | NIST,Gaithersburg,Maryland |
time-a.timefreq.bldrdoc.gov | 132.163.4.101 | NIST,Boulder,Colorado |
time-b.timefreq.bldrdoc.gov | 132.163.4.102 | NIST,Boulder,Colorado |
time-c.timefreq.bldrdoc.gov | 132.163.4.103 | NIST,Boulder,Colorado |
utcnist.colorado.edu | 128.138.140.44 | UniversityofColorado,Boulder |
time.nist.gov | 192.43.244.18 | NCAR,Boulder,Colorado |
time-nw.nist.gov | 131.107.1.10 | Microsoft,Redmond,Washington |
nist1.symmetricom.com | 69.25.96.13 | Symmetricom,SanJose,California |
nist1-dc.glassey.com | 216.200.93.8 | Abovenet,Virginia |
nist1-ny.glassey.com | 208.184.49.9 | Abovenet,NewYorkCity |
nist1-sj.glassey.com | 207.126.98.204 | Abovenet,SanJose,California |
nist1.aol-ca.truetime.com | 207.200.81.113 | TrueTime,AOLfacility,Sunnyvale,California |
nist1.aol-va.truetime.com | 64.236.96.53 | TrueTime,AOLfacility,Virginia |