Use Pagoda web management panel to install Tumblr parsing station on VPS

888u

Last update at :2024-05-27,Edit by888u

The following was successfully installed under Centos 7. Please refer to the previous article: Use VPS to create a Tumblr parsing station, use a Tumblr crawler, and combine h5ai to create a private video library and gallery

1. Install necessary components to 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 Pagoda web management panel, and install PHP and Mysql environments 1. Install the Pagoda 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. Obtain the source code and install dependent libraries (under SSH)

wget https://us.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 use 1. Use 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 Nginx1. Run in the website directory:

gunicorn -w4 -b 0.0.0.0:5000 run:app

2. Configure Nginx and 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; #The directory has been modified expires 1d; }

6. Set up automatic startup and modify supervisord.conf, change the directory to the script root directory and execute it under SSH:

echo "supervisord -c website root directory/supervisord.conf" >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local

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

Recommended site searches: Telecom server rental, Telecom ip proxy, how much does server defense cost, host server rental, http proxy ip, overseas host rental, virtual host Hong Kong host, virtual host, overseas server rental price, filing system, < /p>

Use Pagoda web management panel to install Tumblr parsing station on VPS

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码