0%

MinIO上传文件报错:io.minio.errors.ErrorResponseException: The difference between the request time and the server's time is too large.

使用MinIO上传图片时报错:

1
io.minio.errors.ErrorResponseException: The difference between the request time and the server's time is too large.

这可能是因为linux服务器时间与windows时间不一致造成的。

在linux服务器里同步时间,方法如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
第一步:安装ntp服务
yum -y install ntp
第二步:开启开机启动服务
systemctl enable ntpd
第三步:启动服务 Tips:联网正常前提下如果定时同步失败,先停止服务,再启动
systemctl stop ntpd
systemctl start ntpd
第四步:更改时区
timedatectl set-timezone Asia/Shanghai
第五步:启用ntp同步
timedatectl set-ntp yes
第六步:同步时间
ntpq -p
-------------本文结束感谢您的阅读-------------

欢迎关注我的其它发布渠道