Bootstrap

Conts7 安装Redis教程

1.添加软件安装源

yum install eple-release

2.安装Redis

yum install redis -y

3.启动redis

systemctl start redis

4.允许开机启动

systemctl enable redis

5.修改redis配置文件

vim /ect/redis.conf

修改2处文件 (虚拟机)

6.重启redis

systemctl restart redis

7.登陆redis数据库

redis-cli-h 19.168.159.130 -p 6379

8.设置密码

config get requirepass
config set requirepass 123456

9.使用密码登录

redis-cli -h 192.168.159.130 -p 6379 -a 13456

10.验证链接

;