Use the Baota web management panel to install the Tumblr parser on the VPS

Use the Baota web management panel to install the Tumblr parser on the VPS

The following was successfully installed under Centos 7. Please refer to previous articles:
Use VPS to create a Tumblr analysis station. Use Tumblr crawler and combine h5ai to create private video library and picture library.

1. Install necessary components <br />Install git

 yum install -y git yum install screen wget unzip gcc gcc-c++ python-devel -y

Install pip

 wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py

2. Install the Baota web management panel and install PHP and Mysql environment
1. Install the Baota web management panel

 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

2. Install PHP and Mysql environment

After successful installation, enter your IP:8888 and install PHP and Mysql

3. Release port 5000

4. Install redis

3. Get the source code and install the dependent library (under SSH)

 wget https://zhujiwiki.com/wp-content/uploads/2018/03/ojbk_jiexi.zip unzip ojbk_jiexi.zip cd ojbk_jiexi && pip install -r requirement.txt

Create a logs directory:

 mkdir logs

4. Database Usage
1. Using the database:

 mv config.sample.py config.py && python rebuildDB.py

2. Add a domain name and create a database. In the pagoda panel, add a site and create a database for tumblr.

3. Configuration file config.py, modify as needed

5. Run and configure Nginx
1. Run in the website directory:

 gunicorn -w4 -b 0.0.0.0:5000 run:app

2. Configure Nginx
Add the following code to the Nginx configuration file:

 location / { proxy_pass http://127.0.0.1:5000; proxy_redirect off; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /(images|javascript|js|css|flash|media|static)/ { root /root/ojbk_jiexi/app/static; #目錄修改好expires 1d; }

6. Set up auto-start <br />Modify supervisord.conf and change directory to the script root directory
Execute under SSH:

 echo "supervisord -c 網站根目錄/supervisord.conf" >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local

via: https://github.com/tangrela/ojbk_jiexi

<<:  MineCloud: $9.55/month/1GB RAM/15GB SSD space/300GB traffic/40Mbps/KVM/Hong Kong

>>:  RAKsmart 512MB RAM San Jose KVM VPS Review

Recommend

WootHosting: $12/year/2GB RAM/40GB storage/2TB bandwidth/OpenVZ/Phoenix

WootHosting, an American hosting company, was fou...

Godaddy launches $0.99 Christmas special domain name discount code

Christmas is coming, and there are promotions eve...

Hostodo: $25/year/768MB memory/20GB space/750GB traffic/KVM/Las Vegas CN2 GT

Hostodo, an American merchant, has been introduce...

CloudCone: $1.99/month/512MB memory/15GB SSD space/1TB traffic/KVM/Los Angeles

CloudCone, a recently active hosting provider, pr...

About DigitalOcean's recommendation

DigitalOcean often uses coupon codes to give away...

Vagex uses Debian VPS to make money

This article mainly focuses on Linux VPS online e...

LowEND: $7/month/2 cores/2G/60G/4T/1 IP/KVM

LowEND is a newly established American hosting co...

SSDNodes 4GB RAM SSD Hard Drive OpenVZ VPS Dallas Simple Review

Details : SSDNodes: $48/year/4GB memory/40GB SSD ...

【Double 11】TMWHOST: Macau KVM VPS, 2021 Double 11 Promotion

To thank new and old customers for their continue...

Ramhost.us Web Hosting Coupon Code

It's a discount code for Easter. Coupon code:...