~]# ntpdate -q server_address
~]# ntpdate -q 0.rhel.pool.ntp.org
~]# ntpdate server_address...
~]# ntpdate 0.rhel.pool.ntp.org 1.rhel.pool.ntp.org
date
without any additional arguments as shown in Section 13.2.1, “Date and Time Setup”.
~]# chkconfig ntpdate on
/var/log/boot.log
system log, try to add the following line to /etc/sysconfig/network
:
NETWORKWAIT=1
/etc/ntp.conf
in a text editor such as vi or nano, or create a new one if it does not already exist:
~]# nano /etc/ntp.conf
server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
iburst
directive at the end of each server line:
server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1
~]# service ntpd restart
ntpd
daemon is started at boot time:
~]# chkconfig ntpd on