|
|
|
|
|
今天執(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í)間同步就可以了。
同步更新時(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í)行ntpdate
命令時(shí)返回提示:
ntpdate:command not found
那么需要先安裝ntpdate
命令,執(zhí)行語(yǔ)句如下:
debian:
[root@mysrv ~] apt-get install ntpdate
centos:
[root@mysrv ~] yum install ntpdate
通過(guò)上述操作后,文中的問(wèn)題就可以解決了。