Centos7系统时间同步chrony服务

版权声明:爱辉弟-aihuidila版权所有 https://blog.csdn.net/weixin_43822878/article/details/91491728

安装chrony时间同步服务
yum install chrony -y
可以先查询一下是否有安装
rpm -qa |grep chrony
配置时间同步服务
vi /etc/chrony.conf
server 0.rhel.pool.ntp.org iburst ---->可以更换时间同步服务地址,比如:server ntp1.aliyun.com iburst
server 1.rhel.pool.ntp.org iburst
启动时间同步服务
systemctl start chronyd.service
查看chrony运行状态
systemctl status chronyd.service
查看时间同步源
chronyc sources -v
查看时间同步源状态
[root@zabbix_master ~]# chronyc sourcestats -v
查看当前系统时间
date
使chrony时间同步开机自启动
[root@zabbix_master ~]# systemctl enable chronyd.service

猜你喜欢

转载自blog.csdn.net/weixin_43822878/article/details/91491728