解决Clock skew detected.

来源:互联网 发布:oracle数据库接口 编辑:程序博客网 时间:2024/06/09 04:38

出现warning:

Warning: File `../src/util/rsa_crypto.cc’ has modification time 3.6e+04 s in the future
warning: Clock skew detected. Your build may be incomplete.
出现这一问题是由于文件时间比系统时间晚造成的
出现情景:在一台机器上创建了文件,在另一台机器上运行,由于两台机器时间不同步,出项上述warning
解决方法

  1. 使用touch指令: $ touch FILE_NAME(如果是编译的机器时间不准可能没用)

  2. 修改系统时间:使用date查看系统时间
    red1892@ubuntu:~/tree/cmake/t4/build$ date
    Fri Mar 3 16:57:50 CST 2017

    使用date -s [time or date]修改时间
    red1892@ubuntu:~/tree/cmake/t4/build$ date -s 03/03/2017

    red1892@ubuntu:~/tree/cmake/t4/build$ date -s 17:00:10

0 0
原创粉丝点击