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
23 May 01:05:54 ntpdate[10619]: step time server 204.15.208.61 offset -39.275438 sec
ntpdate server_address...
~]# ntpdate 0.fedora.pool.ntp.org 1.fedora.pool.ntp.org
23 May 01:07:13 ntpdate[10669]: step time server 204.15.208.61 offset -39.275436 sec
date
without any additional arguments as shown in Section 2.2.1, “Configuring the Date and Time”.
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:
/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