centos 7.2 同步北京时间

linux 系统没有北京时间,同步是上海时间

(1)查看时区

[root@develop Asia]# date -R
Fri, 22 Mar 2019 14:11:10 +0800 -- +0800 代表是东八区,如果不是,自行更改到东八区

(2)安装ntpdate工具

yum install ntpdate

(3)同步时间,用的是阿里云的服务器

ntpdate ntp1.aliyun.com

猜你喜欢

转载自www.cnblogs.com/yancun8141/p/10577922.html