1) configuration server operated at 192.168.0.1 root user yum install -y ntp ntpdate modify etc / ntp.conf annotation server and restrict all added: server 0.cn.pool.ntp.org server 0.asia.pool. ntp.org Server 3.asia.pool.ntp.org the restrict 0.cn.pool.ntp.org nomodify notrap The NOQUERY the restrict 0.asia.pool.ntp.org nomodify notrap The NOQUERY the restrict 3.asia.pool.ntp.org nomodify NOQUERY notrap server 127.127.1.0 # local Clock Fudge 127.127.1.0 Stratum 10 System enable the ntpd systemctl disable chronyd systemctl the restart the ntpd # View the NTP server network the ntpq -p 2) client disposed in 192.168.0.2 192.168.0.3 root user operating yum install -y ntp ntpdate In /etc/ntp.conf added 192.168.0.1 the prefer Server System enable the ntpd systemctl disable chronyd systemctl the restart the ntpd # synchronization ntpdate -u 192.168.0.1 performed hwclock --systohc, system time synchronized to the hardware BIOS
k8s -ntpd recording time synchronization configuration (V)
Guess you like
Origin www.cnblogs.com/xinfang520/p/11608973.html
Recommended
Ranking