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

StableHost: A hosting provider that only provides virtual hosting

StableHost provides virtual hosting, Reseller hos...

Java Photo Station Beauty Installation Tutorial

Very good picture site source code, you can use i...

Dedify: 2.88€/month/1GB RAM/10GB SSD/2TB bandwidth/Xen

Dedify, a cloud hosting provider, is based on Clo...

EthernetServers:$7.5/year/1 core/128M/10G/250G/1 IP/OpenVZ

Ethernet Servers is a UK hosting company, founded...

fusa: €4/month/D510/1GB memory/250GB hard disk/500GB traffic/1 IP/Belgium

Fusa is a Dutch hosting company that provides com...

Psychz: $59/month/E3-1230V6/16GB RAM/256GB SSD/10TB traffic/5 IP/India

Psychz, a long-established American hosting compa...

DeinServerHost: €3/month/1GB RAM/12GB SSD space/3TB traffic/DDOS/KVM/Germany

DeinServerHost, a German hosting provider, was es...

LightHosting: $25/year/256MB RAM/25GB storage/unlimited traffic/OpenVZ/Malaysia

LightHosting, a Malaysian hosting provider, was e...

skdedicated: €10/month/4GB RAM/160GB hard drive/unlimited data/Germany

skdedicated, a Dutch hosting provider, is a forma...