@EggGump
2018-09-09T21:39:20.000000Z
字数 680
阅读 435
scrapy
twisted安装
wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.2.1.tar.bz2
tar -xjvf Twisted-15.2.1.tar.bz2
cd Twisted-15.2.1
python setup.py install
pip3 isntall lxml
pip3 install scrapy
pip3 install flask
pip3 install fake_useragent
wget http://download.redis.io/releases/redis-4.0.11.tar.gz
tar xzf redis-4.0.11.tar.gz
cd redis-4.0.11
make
#启动文件加到系统path中
ln -s /root/python/redis-4.0.11/src/redis-server /usr/bin/redis-server
ln -s /root/python/redis-4.0.11/src/redis-cli /usr/bin/redis-cli
#关闭redis的保护模式
#编辑redis.conf
bind 0.0.0.0
daemonize no
protected-mode no
redis readme
redis-server #启动redis服务器
nohup redis-server redis.conf &#这样redis就一直在后台运行啦。。
redis-cli#启动客户端