一、该问题的重现步骤是什么?
1. 前后端工程在本地运行(win10系统)
2. MySql Redis Nacos Sentinel 均部署到另外一台linux电脑上,并且此电脑已配置mavan和jdk
3.后端工程中mysql redis nacos sentinel 地址均已改成部署电脑(linux)上的地址
4.本地后端工程启动之后,再启动前端saber。报下图错误
二、你期待的结果是什么?实际看到的又是什么?
登录成功
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
前端saber后端blade 开源版。项目在win10运行
MySql Redis Nacos Sentinel 部署在另外一台电脑上(linux)
四、请提供详细的错误堆栈信息,这很重要。
Redis exception; nested exception is io.lettuce.core.RedisException: io.lettuce.core.RedisConnectionException: DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside.
五、若有更多详细信息,请在下面提供。
在百度上寻找错误堆栈的解决方法,均未成功。
尝试过解决的操作步骤:把redis.conf中protected-mode yes 修改为protected-mode no 保存并重启服务
然后登录页面点击登录依旧报错,且错误堆栈信息没有改变
扫一扫访问 Blade技术社区 移动端