Troubleshooting Linux Server Ntpdate sync time error The NTP socket is in use, exiting

Source: Internet
Author: User

error message:

Error reason analysis:

Because the XNTPD is already bound to the Socket. When you run Ntpdate, it broadcasts first, and then listens on port 123.

If XNTPD is running and a process is already listening on that port, it will cause ntpdate to fail to run on it. Run the following command to find the PID of the XNTPD

Solution:

Appears: pts/0 00:00:00 grep xntpd indicates that no PID was found.
Using lsof–i:123

Output:

-bash:lsof:command not found

Description not installed Lsof

Execute command:

The following message appears to indicate that the installation was successful

Execute command:

Lsof-i:123

Kill-9 1324
Clear (Kill) the process, and then try to synchronize with the NTP server again
Ntpdate ntp1.aliyun.com

The following screen shows that synchronization time is successful!

 

Troubleshooting Linux Server Ntpdate sync time error The NTP socket is in use, exiting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.