项目服务踩坑

23次阅读
没有评论

Loading local data is disabled;

Loading local data is disabled; this must be enabled on both the client and server sides

接口中设置了允许加载本地数据,而刚创建的数据库 MySQL 没有设置开启  local_infile  选项,解决办法:

# 检查 MySQL 服务器的 local_infile 配置 登录 MySQL 执行以下命令
# # 确认服务器端是否启用
                                                        
SHOW VARIABLES LIKE 'local_infile';

# 修改 文件配置

nano /etc/mysql/my.cnf

# 底部添加配置

[mysqld]
# 启用本地数据加载(1= 启用,0= 禁用);

local-infile=1  

保存文件然后重启配置 `sudo systemctl restart mysql`

启用租户服务失效

解决办法:

  • 查看 supervisor 进程日志,服务进程日志
  • 重新启动 privilege 服务:supervisorctl stop privilege、supervisorctl status privilege、supervisorctl start privilege

有时候是服务问题

获取 IdentityServer 的 jwt 公钥

https://domain/identityserver/.well-known/openid-configuration/jwks

通过公钥信息在 jwt 解密获取信息查询 redis 数据

正文完
 0
评论(没有评论)
验证码