全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 473|回复: 3
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
1#
发表于 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

2#
发表于 2018-12-6 18:40:03 | 只看该作者
时间校准命令
3#
 楼主| 发表于 2018-12-6 18:41:44 | 只看该作者


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

他这个就能解决问题,不复发?
4#
发表于 2018-12-6 18:46:59 | 只看该作者
moowee 发表于 2018-12-6 18:41
为啥用ntpdate不行,要用他的linear script ?

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

不复发
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-14 13:48 , Processed in 0.058346 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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