K8S离线部署笔记-7-NTP服务 Posted on 2021-01-05 Views: 所有主机123456# 安装yum install -y ntp# 启用服务 systemctl start ntpdsystemctl enable ntpd 服务端123456789101112131415# 修改配置vi /etc/ntp.conf#server 0.centos.pool.ntp.org iburst#server 1.centos.pool.ntp.org iburst#server 2.centos.pool.ntp.org iburst#server 3.centos.pool.ntp.org iburstserver 127.127.1.0 fudge 127.127.1.0 stratum 0# 重启服务 systemctl restart ntpd# 查看状态ntpq -pntpstat 客户端12345678910111213141516171819# 修改配置vi /etc/ntp.conf#server 0.centos.pool.ntp.org iburst#server 1.centos.pool.ntp.org iburst#server 2.centos.pool.ntp.org iburst#server 3.centos.pool.ntp.org iburstserver 10.10.51.77fudge 10.10.51.77 stratum 0restrict 10.10.51.77 nomodify notrap noquery# 重启服务 systemctl restart ntpd# 手工同步时间ntpdate -u 10.10.51.77# 查看状态ntpq -pntpstat