Windows远程连接Redis(Ubuntu)

环境

  • Windows版本:Win11 家庭版
  • Linux版本:Ubuntu22.04
  • Redis版本:Redis - 6.0.16
  • IDE: IDEA 2022.2.3
  • Redis:单机部署

配置redis.conf

修改redis.conf配置文件 ,不知道在哪里在终端输入下面的命令

shell 复制代码
find / -name 'redis.conf'

注释掉 bind 127.0.0.1这一行

设置客户端连接的密码 requirepass

关闭保护模式 protected-mode no

启动Redis

开启redis服务

指定redis.conf的文件位置

shell 复制代码
redis-server ./redis.conf

启动客户端

在cmd中输入redis-cli -h address -a password --raw

--raw是防止中文乱码

相关推荐
Lyyaoo.1 小时前
Redisson
数据库·缓存
网络工程小王1 小时前
【LCEL 链式调用详解】调用篇-2
java·服务器·前端·数据库·人工智能
搬砖的小码农_Sky1 小时前
Linux操作系统:Ubuntu和Debian的区别
linux·ubuntu·debian
江湖有缘1 小时前
基于Ubuntu系统Docker部署Note Mark:从安装到配置全流程
linux·ubuntu·docker
道法自然,人法天2 小时前
PostgreSQL安装与初始化教程(二进制压缩包)
数据库·postgresql
yzs872 小时前
从Hydra到storage_engine:PostgreSQL列存引擎的性能跃迁与技术进化
数据库·postgresql
红云梦2 小时前
官方 Anthropic Postgres MCP Server 存在 SQL 注入漏洞 -- SafeDB 是如何做到 4 层防御的
数据库·sql
TDengine (老段)2 小时前
红有软件重构智能油田时序数据底座,支撑生产实时感知与设备预测性维护
大数据·数据库·人工智能·重构·时序数据库·tdengine
倒霉蛋小马3 小时前
【Redis】什么是缓存击穿?
数据库·redis·缓存
空中海3 小时前
04 工程化、质量体系与 React 生态
前端·ubuntu·react.js