Linux????????2?????
???????????? ???????[ 2016/7/19 10:47:56 ] ?????????????? Linux
???????????????????????????????????????????μ?????????????????????????????????????к???鷳?????磬????????????μ?????????????????????PC????ν????????????????
?????????ntpdate?????????????????
??????????linux?????????ntpdate???????
????yum install ntp
???????????????????????????????????????????
????[root@localhost ~]# ntpdate time.nist.gov
????22 Oct 21:11:43 ntpdate[5014]: adjust time server 207.200.81.113 offset -0.018788 sec
??????????????????????????????????????crontab????????????????
????*/10 * * * * ntpdate time.nist.gov #??????IP
?????????????????Ρ??????????????????
????time.nist.gov
????time.nuri.net
????0.asia.pool.ntp.org
????1.asia.pool.ntp.org
????2.asia.pool.ntp.org
????3.asia.pool.ntp.org
??????????ntp???????????????
????????????????????????????????????????Щ???????????????????????????????????????????crontab?????????
????1?????????????ntp
????yum install ntp
????2??????ntp
????[root@localhost ~]# cat /etc/ntp.conf |awk '{if($0 !~ /^$/ && $0 !~ /^#/) {print $0}}'
????restrict default ignore //????????????????ntp?????????????????
????restrict 127.0.0.1 //??????????????
????restrict 192.168.1.0 mask 255.255.255.0 notrap nomodify //????????????????????????????
????server time.nist.gov prefer //????????????????prefer???????
????server 0.asia.pool.ntp.org
????server 1.asia.pool.ntp.org
????server 2.asia.pool.ntp.org
????server 127.127.1.0 # local clock
????fudge 127.127.1.0 stratum 10
????driftfile /var/lib/ntp/drift
????keys /etc/ntp/keys
????3????? ntp
????[root@localhost ~]# /etc/init.d/ntpd start
????4??????????
[root@localhost ~]# netstat -upnl |grep ntpd //?????
[root@localhost ~]# ntpq -pn //????????????IP
remote refid st t when poll reach delay offset jitter
==============================================================================
50.77.217.185 .INIT. 16 u - 64 0 0.000 0.000 0.000
202.90.158.4 .INIT. 16 u - 64 0 0.000 0.000 0.000
202.71.100.89 .INIT. 16 u - 64 0 0.000 0.000 0.000
202.134.1.10 .INIT. 16 u - 64 0 0.000 0.000 0.000
*127.127.1.0 .LOCL. 10 l 18 64 377 0.000 0.000 0.001
[root@localhost ~]# ntpstat //???????
synchronised to local net at stratum 11
time correct to within 12 ms
polling server every 512 s
????remote????NTP??????IP???????????????????????????“+”?????????????????????NTP???????“*”????????????????????????????????NTP??????
????refid???ο????????NTP????????
????st????stratum???
????when??????????????????????μ????
????poll???′θ???????????
????reach??????????NTP???????????μ????
????delay?????紫??????????????
????offset???????????
????jitter??Linux???????BIOS?????????????
??????????????????????????????????????????????????????????????????????????????????????10?????????Σ?????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11