Linux Time Sync With Time Server
Ubuntu
$ sudo ntpdate pool.ntp.org
31 Aug 19:05:55 ntpdate[8911]: the NTP socket is in use, exiting
$ sudo service ntp stop
[ ok ] Stopping NTP server: ntpd.
$ sudo ntpdate pool.ntp.org
31 Aug 19:07:11 ntpdate[10355]: adjust time server 46.29.176.115 offset -0.002893 sec
$ sudo service ntp start
If ntp daemon is running, basically you don’t need to do ntpdate
. The ntp daemon cares about it.
CentOS
$ sudo rdate -s ntp.jst.mfeed.ad.jp
CentOS also can be installed ntp
daemon yum install ntp
.
References
- http://kawatama.net/web/linux/1800
- https://qiita.com/na0AaooQ/items/af6b853faf32c58c21d3
- http://debianj.com/ubuntu/install/ntp
- https://superuser.com/questions/639202/updating-time-ntpdate3108-the-ntp-socket-is-in-use-exiting
- https://askubuntu.com/questions/244526/unable-to-synchronize-time-using-ntp
- https://vitux.com/how-to-install-ntp-server-and-client-on-ubuntu/
- https://qiita.com/tsu-nera/items/9be676b04b190e45b281
- https://zetawiki.com/wiki/리눅스_시간_변경
- https://frody.tistory.com/106
- https://antilibrary.org/422
Time Serve List
Responses
Leave a response to @freeman