本文主要是介绍centos 8.x系统配置chrony时间同步服务测试错误时间,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
服务端配置
客户端配置
客户端相关指令
查看当前的同步源
[root@localhost ~]# chronyc sources -v
210 Number of sources = 1.-- 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
===============================================================================
^~ 192.168.0.22 11 6 377 41 -25.6s[ -25.6s] +/- 11ms
查看当前的同步状态
[root@localhost ~]# chronyc sourcestats -v
210 Number of sources = 1.- Number of sample points in measurement set./ .- Number of residual runs with same sign.| / .- Length of measurement set (time).| | / .- Est. clock freq error (ppm).| | | / .- Est. error in freq.| | | | / .- Est. offset.| | | | | | On the -.| | | | | | samples. \| | | | | | |
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
192.168.0.22 9 5 489 -156879 35285.461 -39.4s 1436ms
手动同步一次时间
[root@localhost ~]# chronyc -a makestep
200 OK
这篇关于centos 8.x系统配置chrony时间同步服务测试错误时间的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!