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