In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Windows Server 2008 virtual machine configuration NTP server
Part of the article quotes from the blog https://blog.51cto.com/13563504/2061333 of Zi Xiao Gang BK.
Open the windows registry
In the start menu bar, click run to enter regedit.
Set the NTP server type
Modify the registry, go to the "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters" directory to see if the key value of [Type] is "NTP", and if not, change it to "NTP". By default, the type value is NTP.
Set Authorization time Server
Go to the "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config" directory and change the key value of [AnnounceFlags] to 5. The default value is 10.
Enable NTP server
Go to the "HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpServer" directory and change the [Enabled] key to 1. The default value is 0.
Restart the W32Time (Windows Time) service
Open the start menu and enter "CMD" in command line mode:
Net stop w32time & & net start w32time restart the win32time service.
Or enter services.msc during the run, enter the service, and start the Windows Time service.
Set the Windows Time service startup mode to automatic in the system service
Enter services.msc in the run, enter the service, select the Windows Time service, and set its startup mode to automatic.
Note: after setting it to automatic, restart the server to test whether the Windows Time service can start normally. When I was doing the actual operation, I found that after restarting the server, the windows Time service could not start normally in automatic mode, and finally set it to automatic (delayed) mode to start normally.
Make sure the firewall allows UDP123 port access
Open the start menu and enter "CMD" in command line mode:
Netsh firewall add portopening protocol = UDP port = 123name = NTPSERVER
You can also modify the firewall through the control panel.
When the NTP server is a virtual machine, the virtual machine is denied time synchronization from the ESXI host.
When your NTP server is a virtual machine, first turn off vmware Tools's "synchronize client time with host time" option.
If you do not turn off this option, VMware Tools synchronizes the time of the virtual machine with the time of the ESXI host at regular intervals, causing the clock to be incorrect.
Turning off "synchronize client time and host time" can only ensure that the virtual machine does not synchronize time with the ESXI host in the boot state. When the virtual machine shuts down and restarts, the virtual machine is forced to synchronize the time of the ESXI host. At this time, the VMX file of the virtual machine needs to be modified to prevent the occurrence of this problem.
You need to add the following code to the VMX file: tools.syncTime = "0" time.synchronize.continue = "0" time.synchronize.restore = "0" time.synchronize.resume.disk = "0" time.synchronize.shrink = "0" time.synchronize.tools.startup = "0" time.synchronize.tools.enable = "0" time.synchronize.resume.host = "0"
After the change, the virtual machine will no longer synchronize time with the ESXI host at all.
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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.