问题
向MinIO上传文件时,抛出异常:The difference between the request time and the server‘s time is too large.
相关Linux命令
查看系统时间:date
查看硬件时间:hwclock
解决方法
方法1
-
手动修改系统时间
date -s 20230213
date -s 11:31:32
date -s “20230213 11:32:32” -
将系统时间写入硬件时间
hwclock --systohc
方法2
-
安装ntp ntpdat
yum -y install ntp ntpdate -
与时间服务器同步时间
ntpdate cn.pool.ntp.org -
将系统时间写入硬件时间
hwclock --systohc