当前位置:网站首页>无法链接远程redis服务器(解决办法百分百)
无法链接远程redis服务器(解决办法百分百)
2022-07-07 15:38:00 【诗风雅韵】
问题原因
redis远程连接服务器失败,
查看网上把bind 127.0.0.1改了,protected-mode保护模式也关闭了,daemonize yes进程守护模式也关闭了
但是还是不行?对一部分人来说以上半分已经可以解决了但是有一个部分同学需要将防火墙关闭
(防火墙就是可以将你Redis的这个端口暴露出来,让别人访问,你要是关闭了那么别人就进不来,为啥,因为它没钥匙,你又不开门,除非是土行孙)所以总结一下办法解决,还不行请留言手把手帮你解决
解决方案
1. 修改bind
表示只允许本地访问,无法远程连接
bind 0.0.0.0
2. 修改保护模式 yes为开始 no为关闭
protected-mode 关闭yes 保护模式,只允许本地链接no 保护模式关闭
protected-mode no
3. 守护进程模式开启
daemonize yes 改为 daemonize noyes: 代表开启守护进程模式。此时是单进程多线程的模式,redis将在后台运行。no: 当前界面将进入redis的命令行界面,exit强制退出或者关闭连接工具都会导致redis进程退出
daemonize no
4. 关闭防火墙
systemctl stop firewalld.service
永久性开启自禁止
systemctl disable firewalld.service
重启redis
systemctl restart redis.service
看到了这里,如果小伙伴还不能解决请留言
边栏推荐
- 【Seaborn】组合图表:PairPlot和JointPlot
- 浅浅理解.net core的路由
- The top of slashdata developer tool is up to you!!!
- LeetCode 1774. The dessert cost closest to the target price is one question per day
- How to mount the original data disk without damage after the reinstallation of proxmox ve?
- Sator推出Web3游戏“Satorspace” ,并上线Huobi
- 直接上干货,100%好评
- LeetCode 152. Product maximum subarray daily question
- Matplotlib绘图界面设置
- The mail server is listed in the blacklist. How to unblock it quickly?
猜你喜欢

PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight

Lowcode: four ways to help transportation companies enhance supply chain management

让保险更“保险”!麒麟信安一云多芯云桌面中标中国人寿, 助力金融保险信息技术创新发展

赋能智慧电力建设 | 麒麟信安高可用集群管理系统,保障用户关键业务连续性

skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配

QML beginner

Siggraph 2022 best technical paper award comes out! Chen Baoquan team of Peking University was nominated for honorary nomination

麒麟信安中标国网新一代调度项目!
![[image sensor] correlated double sampling CDs](/img/1c/3a641ad47ff91536db602dedc82705.png)
[image sensor] correlated double sampling CDs

麒麟信安操作系统衍生产品解决方案 | 存储多路径管理系统,有效提高数据传输可靠性
随机推荐
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
QML初学
QT视频传输
DAPP defi NFT LP single and dual currency liquidity mining system development details and source code
Skimage learning (1)
让保险更“保险”!麒麟信安一云多芯云桌面中标中国人寿, 助力金融保险信息技术创新发展
第九届 蓝桥杯 决赛 交换次数
Sator推出Web3遊戲“Satorspace” ,並上線Huobi
skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色
mysql使用笔记一
User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions
The mail server is listed in the blacklist. How to unblock it quickly?
LeetCode 1031. 两个非重叠子数组的最大和 每日一题
MySQL usage notes 1
skimage学习(1)
LeetCode 1031. Maximum sum of two non overlapping subarrays
Matplotlib绘图界面设置
LeetCode 1986. 完成任务的最少工作时间段 每日一题
rpcms获取指定分类下的文章的方法
LeetCode 1049. Weight of the last stone II daily question