Python连接时报拒绝连接,需要重装redis:
1) 卸载redis
sudo apt-get remove redis-server 
sudo apt-get autoremove
2)编译安装redis
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
tar -xvf redis-3.0.2.tar.gz
cd redis-3.0.2/
make
make install

3)src/redis-server
 

Python连接时报拒绝连接,需要重装redis: