RHCSA参考答案(10)配置NTP网络时间客户端

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 是否已经启用
… …
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章