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 

 

相关文章:

  • 2022-02-06
  • 2022-02-25
  • 2021-06-21
  • 2021-08-11
  • 2021-07-20
  • 2021-08-02
  • 2021-08-26
  • 2022-02-19
猜你喜欢
  • 2022-01-29
  • 2022-02-24
  • 2022-02-04
  • 2021-08-27
  • 2021-06-28
相关资源
相似解决方案