0
点赞
收藏
分享

微信扫一扫

修改linux系统时间-ODPS-0410031-解决方案


写在前面

  • 近期较忙,,,
  • 仅参考记录问题解决方案

问题描述

  • MaxCompute客户端配置因本地时间不对导致超时

: ODPS-0410031:Authentication request expired - the expire time interval exceeds the max limitation: 900000, max_interval_date:900000,expire_date:2015-12-23T10:15:31.000Z,now_date:2015-12-23T02:16:00.000Z

  • ​​具体原因详情参考地址​​

实战代码(取用其中部分即可)

  • 修改本地系统时间

# 将时间改为10点10分
date -s 10:10

# 将日期改为2018年6月11日
date -s 2018-06-11

# 将日期改为2018年6月11日10点10分
date -s '2018-06-11 10:10:00'

# 将日期改为2018年6月11日10点10分,并覆盖硬件时间
date -s '2018-06-11 10:10:00' &&

  • 其他命令

# 查看本地系统时间
date

# 查看硬件时间
hwclock --show
hwclock

# 设置硬件时间为18年6月11日10点10分0秒
hwclock --set --date '2018-06-11 10:10:00'

# 系统时间覆盖硬件时间

参考文章

  • ​​【linux】修改机器时间​​


举报

相关推荐

0 条评论