In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Recently, it is found that the company domain member user time is out of sync with the domain server time, to achieve: 1, the domain member server and the domain client synchronize with the domain NTP server, and 2, the domain NTP server synchronizes with the extranet NTP server as the client (configure Windows time service to use external time source).
Solution method
1. On the domain controller where the PDC role is located, open powershell and enter the following command
W32tm / config / manualpeerlist: "cn.pool.ntp.org tw.pool.ntp.org" / syncfromflags:manual / reliable:yes / update, where / manualpeerlist represents the list of external time source servers, and multiple servers can be separated by spaces. Cn.pool.ntp.org and tw.pool.ntp.org are NTP time servers; / syncfromflags:manual indicates synchronization with servers in the list of specified external time source servers / reliable:yes set up this computer is a reliable source of time; / update notifies the time service that the configuration has changed to make the changes take effect
Net stop w32time shuts down the w32time service
Net start w32time starts the w32time service
W32tm / resync manually synchronizes with external time source server
W32tm / query / status synchronize time server status
W32tm / query / source query time synchronization sources
W32tm / query / peers query time synchronization server and related information
2. NTP time server (available for personal testing):
Cn.pool.ntp.org
1.cn.pool.ntp.org
2.cn.pool.ntp.org
3.cn.pool.ntp.org
3. Adjust the registry
Select start, run, type regedit, and then select OK. Open the registry subkey: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters, showing that the NtpServer value is "cn.pool.ntp.org tw.pool.ntp.org" and the Type value is NTP
Open the registry subkey: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Config. Set AnnounceFlags to 5.
Enable NTPServer. Open the registry subkey: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpServer, and the Enabled value is 1.
Set the synchronization interval and open the registry HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpClient\ SpecialPollInterval. The value of SpecialPollInterval is 604800 of the decimal system (that is, 604800 seconds, 1 day).
4. Configure group policy and set time synchronization between domain members and PDC server
In group policy management, select: computer configuration-Policy-Windows Settings-Security Settings-system Services, and configure domain client automatic windows time service.
In Group Policy Management, right-click "Default Domain Policy" and edit. Select: computer configuration-Administrative templates-system-Windows time Service
Double-click Global time configuration and select enabled. Modify the value of MaxNegPhaseCorrection to 3600 (that is, 3600 seconds, 1 hour); modify the value of MaxPosPhaseCorrection to 3600 (that is, 3600 seconds, 1 hour); change the value of AnnounceFlags to 5; click "apply", "OK".
Enable the Windows NTP client, select enabled; click apply, OK.
With regard to the GPO of the OU where the domain control (PDC) is located, do not "configure the Windows NTP client". Use the system default to set the "unconfigured" state.
Shut down w32time and restart w32time for the policy to take effect
5. Configure time synchronization between client and server, and verify
Update Domain Policy gpupdate/force
Time synchronization with NTP servers in the domain and verify the source of NTP synchronization
Modify the local time of the client in the domain, and after 17 minutes, automatically update and synchronize the service time.
So far, the deployment of the NTP server in the overall domain environment has been completed. 1. The synchronization between the client and the domain NTP server has been realized. 2. The synchronization between the domain controller time and the external network NTP server time has been realized.
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.