Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuration of Windows Server 2008 R2 NTP time Server

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. In the start menu bar, click "run" and enter regedit to open the Windows registry.

2. Set to NTP server type.

Modify the login file: "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters"

The [Type] setting is changed to "NTP".

3. Set the authorization time server

Modify the login file: "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config"

[AnnounceFlags] modify the setting value to 5.

4. Enable NTP server

Modify the login file: "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpServer"

The [Enabled] value is modified to 1.

5. Restart Windows Time service

Open the start menu and enter "CMD" in command line mode:

Net stop w32time & & net start w32time restart the win32time service.

Note:

1. Set the W32Time service startup mode to automatic in the system service.

2. Make sure that the firewall allows UDP123 port access.

Open the UDP:123 port

Open the start menu and enter "CMD" in command line mode:

Netsh firewall add portopening protocol = UDP port = 123name = NTPSERVER

Configure an esxi host as a NTP client

1. Log in to vcenter server through web client, and configure it as shown below.

2. Enable the esxi command line

Press alt+f1 to switch the command interface

3. Modify esxi configuration file

1.vi / etc/ntp.conf adds the following

Tos maxdist 30

two。 Save and launch

3. Set write permissions for / etc/likewise/lsassd.conf

Chmod + w / etc/likewise/lsassd.conf

4.vi / etc/likewise/lsassd.conf finds the following configuration items and removes comments and preceding spaces

Sync-system-time = no

5. Save and launch.

6. Execute the following command

/ sbin/auto-backup.sh

7. Restart the following two services

/ etc/init.d/lsassd restart

/ etc/init.d/ntpd restart

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 264

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report