时间服务器,server、client

[root@room8pc205 ~]# yum -y install chrony

server配置文件(只需更改我写出来的)

[root@room8pc205 ~]# vim /etc/chrony.conf

server  ntp.aliyun.com  iburst

bindacqaddress 0.0.0.0 #时间服务器监听地址(0.0.0.0表示所有地址)

allow 0/0  

cmdallow 127.0.0.1

[root@room8pc205 ~]# systemctl restart chronyd.service

[root@room8pc205 ~]# chronyc sources –v

 

 

 

client 配置文件

[root@client ~]# vim /etc/chrony.conf

server  192.168.1.105  iburst

cmdallow 127.0.0.1

[root@room8pc205 ~]# systemctl restart chronyd.service

posted @ 2021-07-15 14:47  落樰兂痕  阅读(88)  评论(0编辑  收藏  举报