Created
November 11, 2017 04:12
-
-
Save lxs137/8bd314a0d1c3e9b95359f8fecea46c5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export PYTHONPATH=/root | |
| # download source code | |
| cd /root | |
| wget -O spider.zip --no-check-certificate https://github.com/lxs137/py_house_spider/archive/master.zip | |
| unzip spider.zip | |
| cp -r py_house_spider-master/proxy_service /root | |
| cd /root/proxy_service | |
| pip install -r requirements.txt | |
| # start ssdb | |
| # cd /usr/local/ssdb | |
| # ./ssdb-server -d ssdb.conf | |
| # start Flask server | |
| cd /root/proxy_service/web_service | |
| gunicorn -D -w 2 -b 0.0.0.0:5000 flask_service:app | |
| python /root/proxy_service/schedule/proxy_scheduler.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment