10.配置NTP网络时间客户端
配置您的系统,让其作为NTP服务器classroom.example.com的客户端
[root@server0 ~]# yum –y install chrony
[root@server0 ~]# vim /etc/chrony.conf
#server 0.rhel.pool.ntp.org iburst #注释掉默认的 server 配置
#server 1.rhel.pool.ntp.org iburst
#server 2.rhel.pool.ntp.org iburst
server classroom.example.com iburst #添加新的配置
[root@server0 ~]# systemctl restart chronyd
[root@server0 ~]# systemctl enable chronyd
[[root@server0 ~]# timedatectl #验证
… …
NTP enabled: yes #NTP 是否已经启用
… …