centos安装redis

安装
yum install redis

启动
systemctl start redis
停止
systemctl stop redis
重启
systemctl restart redis

开机自启
systemctl enable redis.service

远程连接
vim /etc/redis.conf

bind 0.0.0.0

# 密码 foobared, 自行修改
requirepass foobared
posted @ 2018-11-26 21:00  寒菱  阅读(210)  评论(0编辑  收藏  举报