Latest:

Sync time and set time zone for CentOS 7

Tutorial willing 251Views 0 comment

Install ntp service

sudo yum install ntp

Enable ntp service start at boot up

systemctl enable ntpd

add params“-g -x”,Enable ntp service works with delay

sudo vi /etc/sysconfig/ntpd

Restart ntp service

sudo service ntpd restart

Set the time zone to Shanghai +800 (CST Time Zone)

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

check the time now

date

Keep link to this when copy:VPS List Agent » Sync time and set time zone for CentOS 7

You must Login to submit a comment