安装redis
安装教程1:windows环境安装redis
安装教程2:Centos7环境安装redis
python环境安装redis
在python中,要操作redis,目前主要是通过一个python的redis模块来实现
安装:pip install redis
python连接redis
前提:因为我的redis是安装在win上的,所以,使用redis,必须先启动下redis服务,即cmd后输入redis-server.exe启动