centos7下yum安装redis

  sre

install

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

配置

编辑/etc/redis.conf
注释掉:

bind 127.0.0.1
daemonize no

添加:

bind 0.0.0.0
daemonize yes
requirepass 123456

启动:

service  redis restart

LEAVE A COMMENT

Captcha Code