在线帮助文档[中文]:http://doc.redisfans.com/
常用命令:https://blog.csdn.net/tangsilai/article/details/7477961
1.安装步骤 https://www.cnblogs.com/zuidongfeng/p/8032505.html
注意问题:
(1)编译不了去安装gcc也yum不了,进行yum升级
命令:yum clean all
yum update -y
(2)将redis作为服务启动后,配置文件是用/etc/redis/6379.conf(从/usr/loca/redis../redis.conf拷贝而来)
(3)命令: service redis start/stop
2.配置文件详解 https://www.cnblogs.com/pqchao/p/6558688.html
3.问题:虚拟机上cli能连上,宿主机连不上?
解决1:关闭防火墙/开放6379端口
解决2:配置文件 bind:0.0.0.0
4.设置redis密码
配置文件修改 requirepass 密码
命令登录: ./redis-cli -h 127.0.0.1 -p 6379 -a 123456