当前位置:网站首页>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上通过可视化界面查看
边栏推荐
- Fleet tutorial 13 basic introduction to listview's most commonly used scroll controls (tutorial includes source code)
- Is it meaningful for 8-bit MCU to run RTOS?
- 微信小程序中给event对象传递数据
- Pourquoi Li shufu a - t - il construit son téléphone portable?
- 8位MCU跑RTOS有没有意义?
- Jerry's updated equipment resource document [chapter]
- Principle and usage of extern
- Pytorch extract middle layer features?
- Jerry's watch reading setting status [chapter]
- node の SQLite
猜你喜欢
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
Solution qui ne peut pas être retournée après la mise à jour du navigateur Web flutter
2022年大厂Android面试题汇总(一)(含答案)
Alibaba brand data bank: introduction to the most complete data bank
Kivy tutorial: support Chinese in Kivy to build cross platform applications (tutorial includes source code)
C语言通过指针交换两个数
std::true_type和std::false_type
分布式不来点网关都说不过去
F200——搭载基于模型设计的国产开源飞控系统无人机
[Android] kotlin code writing standardization document
随机推荐
78 岁华科教授逐梦 40 载,国产数据库达梦冲刺 IPO
Pytest learning ----- pytest confitest of interface automation test Py file details
Binary search strategy
Four processes of program operation
Wechat applet obtains mobile number
Introduction to the usage of model view delegate principal-agent mechanism in QT
Summary of Android interview questions of Dachang in 2022 (II) (including answers)
分布式不来点网关都说不过去
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
Interesting - questions about undefined
The solution that flutterweb browser cannot be rolled back after refreshing
The integrated real-time HTAP database stonedb, how to replace MySQL and achieve nearly a hundredfold performance improvement
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
Reppoints: advanced order of deformable convolution
FMT开源自驾仪 | FMT中间件:一种高实时的分布式日志模块Mlog
Run xv6 system
Heavy! Ant open source trusted privacy computing framework "argot", flexible assembly of mainstream technologies, developer friendly layered design
二分(整数二分、实数二分)
Single responsibility principle