In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces what is the small mistake of ntp, the content is very detailed, interested friends can use it for reference, hope to be helpful to you.
[root@localhost ~] # ntpdate 10.128.14.25
3 Apr 21:05:05 ntpdate [1506]: the NTP socket is in use, exiting
You received this error message because xntpd is already bound to the Socket. When running ntpdate, it broadcasts first and then listens on port 123. If xntpd is running and a process is already listening on the port, it will prevent ntpdate from running on it. The solution to this problem is
First look up the Xntpd process
[root@localhost] # lsof-iRose 123
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
Ntpd 4270 ntp 16u IPv4 14175 UDP *: ntp
Ntpd 4270 ntp 17u IPv6 14176 UDP *: ntp
Ntpd 4270 ntp 18u IPv6 14177 UDP localhost6.localdomain6:ntp
Ntpd 4270 ntp 19u IPv4 14178 UDP localhost.localdomain:ntp
Then kill the running process
[root@localhost] # kill-9 4270
[root@localhost] # lsof-iRose 123
You can also end the NTP process like this
[root@localhost init.d] # pwd
/ etc/rc.d/init.d
[root@localhost init.d] #. / ntpd stop
Shutting down ntpd: [OK]
And then synchronize.
[root@localhost ~] # ntpdate 10.128.14.25
3 Apr 12:45:25 ntpdate [2644]: step time server 10.128.14.25 offset-30216.893166 sec
If you encounter the following error, generally there is a problem with the network connection with the NTP server (or the synchronized server is not running xntpd), you can find this problem.
[root@localhost ~] # ntpdate 10.128.14.25
3 Apr 22:07:58 ntpdate [24707]: no server suitable for synchronization found
Add: time synchronization under windows
First run under cmd
Net time / setsntp:210.72.145.44
After setting up the time server, let the server synchronize with the Internet time server immediately, only need to restart the w32time service.
Net stop w32time
Net start w32time
Then set the polling interval. Enter the registry regedit operation:
1. Locate and click the following registry subkey:
HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ TimeProviders\ NtpClient\ SpecialPollInterval
two。 In the right pane, right-click SpecialPollInterval, and then click modify.
3. In the Edit DWORD value, type TimeInSeconds in the numeric data box, and then click OK.
Note: TimeInSeconds is a placeholder and should be replaced with the number of seconds between polls you want. The recommended value is 900 (decimal). This value configures the time server to poll every 15 minutes.
For win2003 and win2008 servers
W32tm / config / syncfromflags:manual / manualpeerlist:10.128.14.25
W32tm / config / update
W32tm / resync
W32tm / resync / rediscover
Resynchronize client and server
This is the end of what are the minor mistakes about ntp. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.