找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 38|回复: 3

技术大佬来科普下“linear script to set the time”

[复制链接]

30

主题

524

回帖

1198

积分

金牌会员

积分
1198
发表于 2018-12-6 18:38:44 | 显示全部楼层 |阅读模式
本帖最后由 moowee 于 2018-12-6 18:43 编辑

My vps time is inconsistent with the Internet time.

I last synchronized the time with ntpdate, and today I found that the time has become wrong again.

I don't know, when will time become wrong again. It affects my use and hopes to help me fix it.

Can you help me solve the problem of wrong time?

thank you very much.

This is the wrong information below:

[root@~]# date
Thu Dec 6 13:05:27 CST 2018
[root@~]# hwclock
Thu 06 Dec 2018 01:05:55 PM CST -0.622322 seconds
[root@~]# ntpdate -u time.nist.gov
6 Dec 12:48:03 ntpdate[1471]: step time server 2610:20:6f96:96::4 offset -1340.142710 sec
[root@~]# date
Thu Dec 6 12:48:33 CST 2018

机器翻译发的TK,客服这样回复的,不太懂:



Hello,

Thanks for your patience.

We are using a linear script to set the time, Please use the below script to update or sync the time.

date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

Thanks and Regards,
Augustine Tom
ChangeIP.com

回复

使用道具 举报

7

主题

868

回帖

1779

积分

金牌会员

积分
1779
发表于 2018-12-6 18:40:03 | 显示全部楼层
时间校准命令
回复

使用道具 举报

30

主题

524

回帖

1198

积分

金牌会员

积分
1198
 楼主| 发表于 2018-12-6 18:41:44 | 显示全部楼层

ojoehao 发表于 2018-12-6 18:40

时间校准命令


为啥用ntpdate不行,要用他的linear script ?

他这个就能解决问题,不复发?
回复

使用道具 举报

7

主题

868

回帖

1779

积分

金牌会员

积分
1779
发表于 2018-12-6 18:40:00 | 显示全部楼层

moowee 发表于 2018-12-6 18:41

为啥用ntpdate不行,要用他的linear script ?

他这个就能解决问题,不复发? ...

不复发
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-4-20 00:58 , Processed in 0.019336 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表