redis 安装

 

安装redis

yum -y install epel-release
yum -y install redis

编辑/etc/redis.conf 修改 daemonize参数

daemonize yes

bind 0.0.0.0

启动

redis-server /etc/redis.conf

设置密码

vim /etc/redis.conf
requirepass 密码

  用设置的密码进行连接测试:

 

 

posted @ 2019-03-06 17:37  格桑梅朵儿  阅读(63)  评论(0编辑  收藏  举报