1、查看当前服务器时间
[root@iZbp1f0xuq9rc41s6gdvfyZ ~]# date -R
Mon, 27 Apr 2020 10:41:54 +0800
2、安装ntpdate服务
[root@iZbp1f0xuq9rc41s6gdvfyZ ~]# yum install ntpdate
Loaded plugins: fastestmirror
Determining fastest mirrors
3、直接用域名同步中国上海时间 是阿里云的服务器
[root@iZbp1f0xuq9rc41s6gdvfyZ ~]# ntpdate ntp1.aliyun.com
27 Apr 10:45:42 ntpdate[6028]: step time server 120.25.115.20 offset 190.621216 sec
4、查看新时间是否已同步
[root@iZbp1f0xuq9rc41s6gdvfyZ ~]# date -R
Mon, 27 Apr 2020 10:45:51 +0800
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/160858.html