1. yum install epel-release
2. yum install –y redis
3. start : systemctl start redis.service
4. status : systemctl status redis.service
5. startup: systemctl enable redis.service
redis.conf文件默认在/etc目录下,
可更改位置和名字,更改后需要修改文件/usr/lib/systemd/system/redis.service把ExecStart=/usr/bin/redis-server /etc/redis/6379.conf --daemonize no中的redis.conf的路径改成新的路径