1、在 node1 主机上配置 chrony 时间服务器,将该主机作为时间服务器。
命令:
vim /etc/chrony.conf
在文件位置添加命令:
#Use public servers from the pool.ntp.org project.
#Please consider joining the pool (https://www.pool.ntp.org/join.html).
#pool 2.rhel.pool.ntp.org iburst
server ntp.aliyun.com iburst
systemctl status chronyd
chronyc tracking
chronyc sources
2、在 node1 主机上创建防火墙区域 testzone, 将 node1 主机网络接口接入该区域,创建新防火墙服务为 timeservice
命令:
firewall-cmd --new-zone=testzone --permanent
firewal