How to configure NTP Client in Linux?

If you are running a dedicated server and seems server’s time is delayed or is ahead of the actual time, we can use NTP to solve it.

# yum install ntp
# ntpdate


# ntpdate
You can also add it to /etc/cron.daily to check correct Date/Time.
# cd /etc/cron.daily/

# vim



Save and exit the file. Now, make it as a executable by,

# chmod 755 /etc/cron.daily/

Finally restart the cron daemon.

# service crond restart