CentOS通过yum快速安装Redis
添加EPEL仓库
sudo yum install epel-release
更新yum源
sudo yum update
安装Reids
sudo yum install redis
启动Redis
sudo systemctl start redis
设置开机启动
systemctl enable redis.service
开启远程连接
vim /etc/redis.conf
#bind 127.0.0.1 //将bind 127.0.0.1此行注释掉
设置连接密码
vim /etc/redis.conf
requirepass 你的密码 // 取消掉此行的注视并修改密码
重启Redis服务
sudo systemctl restart redis
License:
CC BY 4.0