ntpdate
command in the following form:
ntpdate -q server_address
0.fedora.pool.ntp.org
, type:
~]$ ntpdate -q 0.fedora.pool.ntp.org
server 204.15.208.61, stratum 2, offset -39.275438, delay 0.16083
server 69.65.40.29, stratum 2, offset -39.269122, delay 0.17191
server 148.167.132.201, stratum 2, offset -39.270239, delay 0.20482
17 Oct 17:41:09 ntpdate[10619]: step time server 204.15.208.61 offset -39.275438 sec
root
, run the ntpdate command followed with one or more server addresses:
ntpdate server_address…
~]# ntpdate 0.fedora.pool.ntp.org 1.fedora.pool.ntp.org
17 Oct 17:42:13 ntpdate[10669]: step time server 204.15.208.61 offset -39.275436 sec
date
command with no additional arguments.
root
:
systemctl enable ntpdate.service
/var/log/boot.log
system log, try to add the following line to /etc/sysconfig/network
:
NETWORKWAIT=1
ntpd
daemon to synchronize the time at boot time automatically:
root
, open the NTP configuration file /etc/ntp.conf
in a text editor, creating a new one if it does not already exist.
server 0.fedora.pool.ntp.org iburst server 1.fedora.pool.ntp.org iburst server 2.fedora.pool.ntp.org iburst
iburst
directive is added at the end of each server line.
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1
systemctl restart ntpd.service
ntpd
daemon is started at boot time:
systemctl enable ntpd.service