1. 程式人生 > >CentOS 7 Install Redis

CentOS 7 Install Redis

install 位置 server systemd entos red ecs ble serve

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的路徑改成新的路徑

CentOS 7 Install Redis