欢迎光临
我们一直在努力

centos7.5 chorny 同步时间

虚拟机:

1、关闭防火墙和selinux

systemctl disable firewalld 

systemctl stop firewalld 

vim /etc/selinux/config 

SELINUX=disabled

2、

server 端: 192.168.30.101

client 端: 192.168.30.102

3、client 与server 端时间:

4、配置server :vim /etc/chrony.conf 

server ntp.aliyun.com iburst

allow 192.168.0.0/16

5、配置client端:vim /etc/chrony.conf

server 192.168.30.101 iburst

6、配置文件需要重启chronyd服务

systemctl restart chronyd;时间同步

7、执行chronyc :^* 192.168.30.101  表示已和服务端同步

8、执行chronyc :192.168.30.102  表示同步的clients 

备注:

[root@centos7 yum.repos.d]#systemctl is-active chronyd     查看服务是否正在运行

active

[root@centos7 yum.repos.d]#systemctl is-enabled  chronyd   查看服务是否开机自启动

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。