chrony 同步系统时间

chrony 配置文件使用腾讯外网ntp

grep tencent /etc/chrony.conf  -A 2 -B 2
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server ntp1.tencent.com iburst
server ntp2.tencent.com iburst
server ntp3.tencent.com iburst
server ntp4.tencent.com iburst
server ntp5.tencent.com iburst

# Record the rate at which the system clock gains/losses time.

腾讯云ntp

https://www.tencentcloud.com/zh/document/product/213/32379

chrony使用文档

https://www.tencentcloud.com/zh/document/product/213/40227

[root@node1 ~]# chronyc sources -v
210 Number of sources = 5

  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current synced, '+' = combined , '-' = not combined,
| /   '?' = unreachable, 'x' = time may be in error, '~' = time too variable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) --.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^+ 106.55.184.199                2   8   377   103   -407us[ -607us] +/-   45ms
^- 111.230.189.174               2   8   377    48   -536us[ -740us] +/-   41ms
^* 106.55.184.200                2   9   377    47    -93us[ -297us] +/-   35ms
^- 134.175.254.134               2   8   375   237    +99us[  -91us] +/-   45ms
^+ 134.175.253.104               2   8   367   114  -1148us[-1347us] +/-   36ms
[root@node1 ~]#
[root@node1 ~]# chronyc tracking
Reference ID    : 6A37B8C8 (106.55.184.200)
Stratum         : 3
Ref time (UTC)  : Fri Apr 12 03:25:10 2024
System time     : 0.000280140 seconds slow of NTP time
Last offset     : -0.000204116 seconds
RMS offset      : 0.000322533 seconds
Frequency       : 9.776 ppm slow
Residual freq   : -0.018 ppm
Skew            : 0.594 ppm
Root delay      : 0.009037555 seconds
Root dispersion : 0.006557804 seconds
Update interval : 259.6 seconds
Leap status     : Normal
[root@node1 ~]#
[root@node1 ~]# systemctl status chronyd.service
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2024-04-12 10:44:06 CST; 42min ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
 Main PID: 228874 (chronyd)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.