用Redis客户端工具连接Redis

进入redis安装目录

vi redis.conf

1.关闭默认的只允许本地登录

2.关掉保护模式

3.requirepass注释去掉,修改密码
4. 开启redis后台运行
5.安装redis客户端连接工具

用Redis客户端工具连接Redis_第1张图片
6.确保 Linux 防火墙已经关闭,再连接redis

systemctl stop firewalld.service
systemctl disable firewalld.service

7.连接redis
用Redis客户端工具连接Redis_第2张图片
成功用Redis客户端工具连接Redis_第3张图片

你可能感兴趣的:(Linux,redis,缓存,数据库)