the NTP socket is in use, exiting
生活随笔
收集整理的這篇文章主要介紹了
the NTP socket is in use, exiting
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
背景
安裝Hadoop生態系統時同步時間命令:
sudo ntpdate ntp1.aliyun.com報錯:
6 Jun 18:48:31 ntpdate[25295]: the NTP socket is in use, exitingSolve
該ntp服務可能正在運行,假您已安裝service。
hadoop@slave2:~$ sudo ntpdate pool.ntp.org6 Jun 18:45:09 ntpdate[2962]: the NTP socket is in use, exiting hadoop@slave2:~$ sudo service ntp stop hadoop@slave2:~$ sudo ntpdate ntp1.aliyun.com6 Jun 18:48:17 ntpdate[2991]: adjust time server 120.25.115.20 offset 0.002264 sec如果沒有安裝service:
[hadoop@master ~]$ sudo ntpdate ntp1.aliyun.com6 Jun 18:48:31 ntpdate[25295]: the NTP socket is in use, exiting [hadoop@master ~]$ sudo service ntp stop Redirecting to /bin/systemctl stop ntp.service Failed to stop ntp.service: Unit ntp.service not loaded. [hadoop@master ~]$ sudo pkill -9 -f ntp Killed [hadoop@master ~]$ sudo ntpdate ntp1.aliyun.com6 Jun 18:50:35 ntpdate[25325]: adjust time server 120.25.115.20 offset -0.000052 sec總結
以上是生活随笔為你收集整理的the NTP socket is in use, exiting的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 128. Longest Consecu
- 下一篇: 126. Word Ladder II