Windows Server 2008 R2 NTP時間伺服器的配置

來源:互聯網
上載者:User

標籤:current   res   ado   設定   blog   port   去掉   自動   cto   

1、在開始功能表列中,點擊“運行”輸入regedit,開啟Windows 註冊表
2、設定成為NTP 伺服器類型。
修改登陸檔案中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
[Type]設定值修改為”NTP”。
3、設定授權時間伺服器
修改登入檔中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config"
[AnnounceFlags]修改設定值為5。
4、啟用NTP伺服器
修改登入檔中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer"
[Enabled]數值修改為1。
5、重起Windows Time服務
開啟開始菜單輸入“CMD”在命令列模式下輸入:
?net?stop?w32time?&&?net?start?w32time???重啟一下win32time服務。

注意:
1、在系統服務中設定W32Time服務啟動模式為自動。
2、確定防火牆允許UDP123連接埠訪問。
開啟 UDP:123連接埠
開啟開始菜單輸入“CMD”在命令列模式下輸入:
netsh firewall add portopening protocol = UDP port =123 name = NTPSERVER

將esxi主機配置為NTP用戶端
1、通過web client登陸vcenter server,按進行配置

2、啟用esxi命令列

按alt+f1切換命令介面
3、修改esxi設定檔
1.vi /etc/ntp.conf添加下列內容
tos maxdist 30
2.儲存並推出
3.設定 /etc/likewise/lsassd.conf的寫入權限
chmod +w /etc/likewise/lsassd.conf
4.vi /etc/likewise/lsassd.conf 找到下列配置項去掉注釋和前面的空格,
sync-system-time = no
5.儲存並推出.
6.執行下面的命令
/sbin/auto-backup.sh
7.重啟下列兩個服務
/etc/init.d/lsassd restart
/etc/init.d/ntpd restart

Windows Server 2008 R2 NTP時間伺服器的配置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.