当前位置:网站首页>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上通过可视化界面查看
边栏推荐
- STM32 key state machine 2 - state simplification and long press function addition
- ASEMI整流桥DB207的导通时间与参数选择
- Appium automated test scroll and drag_ and_ Drop slides according to element position
- How to solve the error "press any to exit" when deploying multiple easycvr on one server?
- scratch疫情隔离和核酸检测模拟 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
- Open source and safe "song of ice and fire"
- Distinguish between basic disk and dynamic disk RAID disk redundant array
- Wechat applet obtains mobile number
- MSF horizontal MSF port forwarding + routing table +socks5+proxychains
- 面试突击63:MySQL 中如何去重?
猜你喜欢
Selected technical experts from China Mobile, ant, SF, and Xingsheng will show you the guarantee of architecture stability
OliveTin能在网页上安全运行shell命令(上)
Cool Lehman has a variety of AI digital human images to create a vr virtual exhibition hall with a sense of technology
QT中Model-View-Delegate委托代理机制用法介绍
【Android】Kotlin代码编写规范化文档
Scratch epidemic isolation and nucleic acid detection Analog Electronics Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
EasyCVR授权到期页面无法登录,该如何解决?
队列的实现
Jerry's updated equipment resource document [chapter]
Unity tips - draw aiming Center
随机推荐
OpenCV中如何使用滚动条动态调整参数
scratch疫情隔离和核酸检测模拟 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
The difference between parallelism and concurrency
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Reppoints: advanced order of deformable convolution
I want to say more about this communication failure
Growth of operation and maintenance Xiaobai - week 7
Unity tips - draw aiming Center
Zen integration nails, bugs, needs, etc. are reminded by nails
This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
【Android】Kotlin代码编写规范化文档
Smart street lamp based on stm32+ Huawei cloud IOT design
Transfer data to event object in wechat applet
OpenEuler 会长久吗
Pytest learning ----- pytest confitest of interface automation test Py file details
传统家装有落差,VR全景家装让你体验新房落成效果
Kill -9 system call used by PID to kill process
Unity小技巧 - 绘制瞄准准心
The solution that flutterweb browser cannot be rolled back after refreshing