mercoledì 24 marzo 2021

Set date time in Centos

 Install ntp client


yum install ntpdate

modify /etc/ntp/step-tickers adding all the ntp server needed


ntpdate <ip_ntp_server>   -> ntpdate 0.it.pool.ntp.org

systemctl restart ntpdate

systemctl enable ntpdate


check time with timedatctl


change timezone:

timedatectl list-timezones
sudo timedatectl set-timezone your_time_zone