CentOS 7 Install Redis

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.serviceExecStart=/usr/bin/redis-server /etc/redis/6379.conf --daemonize no中的redis.conf的路径改成新的路径

posted @ 2019-01-24 19:26  Alex~  阅读(150)  评论(0编辑  收藏  举报