NTP (Network Time Protocol) could be used to set time synced with ntp clocks, to do this use the shell command below:

Setting time with NTP:

yum install ntp -y
\cp -f /usr/share/zoneinfo/Europe/Istanbul /etc/localtime
ntpdate -v -b in.pool.ntp.org

And set the hardware clock with:

hwclock -w

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: