Redis服务安装
2019-12-18 本文已影响0人
淡淡de盐
yum 安装Redis服务
yum install redis
安装fedora
yum install epel-release
启动redis服务
# 启动
systemctl start redis
# 查看状态
systemctl status redis
# 停止服务
systemctl stop redis
# 重启服务
systemctl restart redis
# 查看进程
ps -ef | grep redis
设置开机自启动
systemctl enable redis
防火墙端口开放
设置redis配置
vim /etc/redis.conf
注释掉bind,否则只有本机才能访问

protected-mode保护模式修改为no

修改密码

重启redis
systemctl restart redis
测试进入redis
redis-cli -h 127.0.0.1 -p 6379
输入info,提示验证
# 输入密码
auth 123456
# 在次info后显示正常

客户端连接可以用 RDM.APP
