安装redis
yum -y install epel-release yum -y install redis
编辑/etc/redis.conf 修改 daemonize参数
daemonize yesbind 0.0.0.0
启动
redis-server /etc/redis.conf
设置密码
vim /etc/redis.confrequirepass 密码
用设置的密码进行连接测试: