centos ntp 配置

2018年7月4日 0 条评论 1.21k 次阅读 0 人点赞

服务端:

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:

管理-设置-时间配置

Sevenfal

这个人太懒什么东西都没留下

文章评论(0)