1、安装redis(Python)。
https://www.runoob.com/w3cnote/python-redis-intro.html
2、还要安装redis 服务:
Ubuntu: sudo apt-get install redis-server
Cent OS: sudo yum install redis
3、启动redis
sudo service redis-server {start|stop|restart|force-reload|status}
sudo service redis-server start