当前位置:网站首页>Windows连接Linux上安装的Redis
Windows连接Linux上安装的Redis
2022-07-06 10:08:00 【848698119】
Reids的远程连接
Linux上安装的Redis其连接配置
1.关闭linux防火墙
- 设置开机启用防火墙:systemctl enable firewalld.service
- 设置开机禁用防火墙:
systemctl disable firewalld.service
- 启动防火墙:systemctl start firewalld
- 关闭防火墙:
systemctl stop firewalld
- 检查防火墙状态:
systemctl status firewalld
2.修改Redis配置文件——redis.config
先找到在linux中redis的安装路径
命令:vim redis.config
用vim编辑器修改redis.config中的配置
进入编辑界面后输入 /bind
可以快速搜索定位bind的位置
输入wq
保存并退出
- 把原来的【bind 127.0.0.1】 改成【
bind0,0,0,0
】 这样redis就可以与其他主机连接 - 【protected-mode yes】修改为: 【
protected-mode no
】解除redis的保护机制,可以被其他主机连接
3. 启动redis
指定配置文件启动Redis,并且后端启动&
启动redis服务时,
指定配置文件
:redis-server 路径/redis.conf &
4. Windows上的Redis可视化工具连接Linux上的Redis
- 这边可以在Windows上下载一个Redis的可视化工具,可以很好的查看Redis中的数据
5. 在Linux上Redis写数据
Redis服务已经启动了,首先进入Redis的客户端模式
直接默认连接客户端就可以——命令:redis-cli
直接进行字符串的写操作:
set k1 v1
- 在Windows上通过可视化界面查看
边栏推荐
- Awk command exercise
- Zen integration nails, bugs, needs, etc. are reminded by nails
- 趣-关于undefined的问题
- Kill -9 system call used by PID to kill process
- [introduction to MySQL] the first sentence · first time in the "database" Mainland
- Interview assault 63: how to remove duplication in MySQL?
- C语言指针*p++、*(p++)、*++p、*(++p)、(*p)++、++(*p)对比实例
- HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
- Appium automated test scroll and drag_ and_ Drop slides according to element position
- SQL statement optimization, order by desc speed optimization
猜你喜欢
Reppoints: advanced order of deformable convolution
[introduction to MySQL] the first sentence · first time in the "database" Mainland
C语言通过指针交换两个数
Open source and safe "song of ice and fire"
8位MCU跑RTOS有没有意义?
[Android] kotlin code writing standardization document
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
JMeter interface test response data garbled
Distinguish between basic disk and dynamic disk RAID disk redundant array
Pourquoi Li shufu a - t - il construit son téléphone portable?
随机推荐
二分(整数二分、实数二分)
The difference between parallelism and concurrency
關於這次通信故障,我想多說幾句…
d绑定函数
Interview shock 62: what are the precautions for group by?
FMT开源自驾仪 | FMT中间件:一种高实时的分布式日志模块Mlog
李书福为何要亲自挂帅造手机?
Jerry's watch reads the file through the file name [chapter]
队列的实现
Is it meaningful for 8-bit MCU to run RTOS?
std::true_type和std::false_type
MSF horizontal MSF port forwarding + routing table +socks5+proxychains
scratch疫情隔离和核酸检测模拟 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
STM32 key state machine 2 - state simplification and long press function addition
1700C - Helping the Nature
QT中Model-View-Delegate委托代理机制用法介绍
In terms of byte measurement with an annual salary of 30W, automated testing can be learned in this way
2022年大厂Android面试题汇总(二)(含答案)
Nodejs 开发者路线图 2022 零基础学习指南
Wechat applet obtains mobile number