技術(shù)頻道導(dǎo)航
HTML/CSS
.NET技術(shù)
IIS技術(shù)
PHP技術(shù)
Js/JQuery
Photoshop
Fireworks
服務(wù)器技術(shù)
操作系統(tǒng)
網(wǎng)站運(yùn)營(yíng)

贊助商

分類目錄

贊助商

最新文章

搜索

【解決】Signature expired: 20170517T062414Z is now earlier than... 5 min

作者:admin    時(shí)間:2021-3-4 18:50:56    瀏覽:

今天執(zhí)行一個(gè)程序,提示錯(cuò)誤:

Signature expired: 20170517T062414Z is now earlier than 20170517T062840Z (20170517T063340Z - 5 min.)"

查了一下,原來(lái)是系統(tǒng)時(shí)間的同步問(wèn)題,當(dāng)系統(tǒng)時(shí)間與全球統(tǒng)一時(shí)間不同步時(shí),程序就出現(xiàn)了上述提示的錯(cuò)誤。

那么如何解決該問(wèn)題呢,其實(shí)就是設(shè)置一下系統(tǒng)時(shí)間與全球統(tǒng)一時(shí)間同步就可以了。

ntpdate同步更新時(shí)間

同步更新時(shí)間使用ntpdate命令,直接執(zhí)行如下語(yǔ)句:

[root@mysrv ~] ntpdate time.nist.gov 

執(zhí)行ntpdae命令提示command not found?

上面執(zhí)行語(yǔ)句用到 time.nist.gov ,這個(gè)是權(quán)威時(shí)間服務(wù)器地址。

權(quán)威時(shí)間服務(wù)器可以選用下面這些其中之一:

time.nist.gov  
time.nuri.net  
0.asia.pool.ntp.org  
1.asia.pool.ntp.org  
2.asia.pool.ntp.org  
3.asia.pool.ntp.org

執(zhí)行成功會(huì)顯示類似如下的信息

30 Jul 18:01:08 ntpdate[11063]: adjust time server 216.229.0.179 63592.064680 sec

執(zhí)行ntpdae命令提示command not found?

如果執(zhí)行ntpdate命令時(shí)返回提示:

ntpdate:command not found

那么需要先安裝ntpdate命令,執(zhí)行語(yǔ)句如下:

debian:

[root@mysrv ~] apt-get install ntpdate 

centos:

[root@mysrv ~] yum install ntpdate

問(wèn)題解決

通過(guò)上述操作后,文中的問(wèn)題就可以解決了。

 

標(biāo)簽: centos  linux  時(shí)間同步  
x
  • 站長(zhǎng)推薦
/* 左側(cè)顯示文章內(nèi)容目錄 */