服务端:
yum install ntp ntpd --version
编辑 /etc/sysconfig/ntpd 文件:
SYNC_HWCLOCK=yes OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g"
编辑 /etc/ntp.conf
添加:
restrict 10.10.100.0 mask 255.255.255.0 nomodify notrap server 127.127.1.0 fudge 127.127.1.0 stratum 10 server ntp1.aliyun.com iburst server ntp2.aliyun.com iburst server ntp3.aliyun.com iburst server ntp4.aliyun.com iburst server ntp5.aliyun.com iburst server ntp6.aliyun.com iburst broadcastdelay 0.008 logfile /var/log/ntp.log
客户端:
虚拟机:
sudo vmware-toolbox-cmd timesync disable crontab -l 1 * * * * /usr/sbin/ntpdate -s 10.10.100.75
esxi:
管理-设置-时间配置
© 著作权归作者所有
文章评论(0)