VMware ESXi 6.7 NTP时间配置

1、Windows Server 2016 域控服务器配置

w32tm /config /manualpeerlist:"ntp1.aliyun.com ntp2.aliyun.com" /syncfromflags:manual /reliable:yes /update
net stop w32time & net start w32time
w32tm /resync
W32tm /query /status
w32tm /query /configuration
W32tm /query /status /verbose
reg QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

Time /T

对于域控制器,其组策略上的时间服务选项要保持在“未配置”的状态。

2、Windows 客户端配置

w32tm /config /manualpeerlist:"192.168.10.59" /syncfromflags:manual /reliable:yes /update
net stop w32time & net start w32time
w32tm /resync
W32tm /query /status

3、VMware ESXi 6.7 配置

mv /etc/localtime /etc/localtime.bak
cp /vmfs/volumes/HDS_SAS_2TB/Shanghai /etc/localtime
date

cat /etc/ntp.conf
restrict default nomodify notrap nopeer noquery
restrict 127.0.0.1
driftfile /etc/ntp.drift
server 192.168.10.59

/etc/init.d/ntpd  restart
date

4、CentOS 7 NTP客户端配置

yum -y  install ntp
cat /etc/ntp.conf | grep -v '#' | grep -v '^$'

echo "server 192.168.10.59 iburst" > /etc/ntp.conf
systemctl enable ntpd.service
systemctl start ntpd
systemctl status ntpd
ntpstat
watch ntpq -p

timedatectl set-timezone Asia/Shanghai

[root@guest ~]# timedatectl status
      Local time: 三 2021-01-06 14:17:39 CST
  Universal time: 三 2021-01-06 06:17:39 UTC
        RTC time: 三 2021-01-06 06:17:39
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注