【无标题】


title: "Chronyd"

createTime: 2022-01-05T14:51:19+08:00
updateTime: 2022-01-05T14:51:19+08:00
draft: false
author: "name"
tags: ["Chronyd"]
categories: ["install"]
description: "测试的"

Chronyd

chronyd是一个同步系统时钟的守护进程。

从Centos7开始默认安装时钟同步服务chronyd,而不是ntpd。

# dnf -y install chronyd
# eccho 'server ntp1.aliyun.com iburst' >> /etc/chrony.conf
# systemctl enable chronyd.service && systemctl start chronyd.service

Chronyc

chronyc is a command-line interface program which can be used to monitor chronyd's performance and to change various operating parameters whilst it is running.

# chronyc sources -v
  .-- 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               
===============================================================================
^* classroom.example.com         8  10   377  1000   +130us[ +147us] +/-  819us

createTime: 2022-01-05T14:51:19+08:00

updateTime: 2022-01-05T14:51:19+08:00

createTime: 2022-01-05T14:51:19+08:00

updateTime: 2022-01-05T14:51:19+08:00

set-timezone
  • 设置时区,也可以手动执行localtime软连接
shell 复制代码
createTime: 2022-01-05T14:51:19+08:00
updateTime: 2022-01-05T14:51:19+08:00
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
set-ntp BOOL

和chrony配置的ntp server进行时间同步

set-time TIME

手动设置日期时间

相关推荐
油头少年_w1 天前
ZooKeeper和Hadoop高可用(主备切换)
zookeeper
运维&陈同学1 天前
【zookeeper04】消息队列与微服务之zookeeper客户端访问
linux·后端·微服务·zookeeper·云原生·消息队列·云计算
_Matthew2 天前
学习Zookeeper
分布式·zookeeper·云原生
运维&陈同学2 天前
【zookeeper02】消息队列与微服务之zookeeper单机部署
linux·服务器·分布式·微服务·zookeeper·云原生·消息队列·云计算
运维&陈同学4 天前
【zookeeper03】消息队列与微服务之zookeeper集群部署
linux·微服务·zookeeper·云原生·消息队列·云计算·java-zookeeper
运维&陈同学4 天前
【zookeeper01】消息队列与微服务之zookeeper工作原理
运维·分布式·微服务·zookeeper·云原生·架构·消息队列
谭震鸿5 天前
Zookeeper集群搭建Centos环境下
分布式·zookeeper·centos
求积分不加C6 天前
zookeeper is not a recognized option--解决方案
分布式·zookeeper·云原生
Karoku0668 天前
【企业级分布式系统】ZooKeeper集群
linux·运维·数据库·分布式·zookeeper·云原生
fengqing55788 天前
zookeeper安装教程
分布式·zookeeper·云原生