写在前面
- 近期较忙,,,
- 仅参考记录问题解决方案
问题描述
- MaxCompute客户端配置因本地时间不对导致超时
FAILED: 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' && hwclock -w
- 其他命令
# 查看本地系统时间
date
# 查看硬件时间
hwclock --show
hwclock
# 设置硬件时间为18年6月11日10点10分0秒
hwclock --set --date '2018-06-11 10:10:00'
# 系统时间覆盖硬件时间
clock -w
hwclock -w