top
本文目录
Install ntp service
Enable ntp service start at boot up
add params"-g -x",Enable ntp service works with delay
Restart ntp service
Set the time zone to Shanghai +800 (CST Time Zone)
check the time now

Sync time and set time zone for CentOS 7

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
THE END
icon
0
icon
打赏
icon
分享
icon
二维码
icon
海报
发表评论
评论列表

赶快来坐沙发