1.安装redis
yum intsall redis
2.本地连接
/bin 目录下
./redis-server启动服务
redis-cli连接
3.外部连接
该错误需要修改配置文件
/etc/redis.conf
61行
注释
80行
将yes改为no
482行
设置密码
出现该错误需要在本地cli连接redis执行以下命令
config set protected-mode no
之后即可正常远程连接redis