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