install scrapy-redis on centos
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm -replacefiles
yum install redis -y #if yum is locked? rm -f /var/run/yum.pid
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
yum install python-devel
pip install scrapy-redis
Configure:
1. Allow remote connection
Edit /etc/redis.conf , comment out "bind 127.0.0.1"
2. test
TRY redis-cli -h [REMOTE_IP] -p 6379
if it occurs error "Could not connect to Redis No route to host" , type sudo iptables -F to fix
posted on 2016-11-23 15:03 Pentium.Labs 阅读(191) 评论(0) 编辑 收藏 举报