如果嫌编译麻烦的话可以用下面的步骤
1.yum install redis
2.vim /etc/redis.conf, 将其中的daemonize no改为daemonize yes
3.service redis start
4.systemctl enable redis.service (自动启动)
5. redis-cli
如果嫌编译麻烦的话可以用下面的步骤
1.yum install redis
2.vim /etc/redis.conf, 将其中的daemonize no改为daemonize yes
3.service redis start
4.systemctl enable redis.service (自动启动)
5. redis-cli