Tutorial on using vultr’s VPS to build an automatically collected novel website

888u

Last update at :2024-02-04,Edit by888u

Introduction

The novel program we are going to install today is PTCMS. This novel program is a PHP program with a collection module in the background. You can directly add collection tasks to realize the automatic collection function. There is no need to turn on and off collection like the Jieqi program. The only disadvantage of this novel program is that the database is getting bigger and bigger. The blogger has tried to collect 3W books, and the database is about 4.2G. Now I will introduce to you a VPS using Vultr to install the ptcms program

1. Create a new VPS

We open the vultr official website: www.vultr.com

After logging in, click the + icon in the upper right corner to create a new VPS.

VPS recommendation: The data center recommends choosing Los Angeles, Tokyo and Singapore routes around the United States; the system recommends centos7. If you want more stability, it is recommended to choose a VPS with a monthly payment of 5 dollars. If you don’t have much money, you can choose a 3.5 dollar one. . Because as we said above, unlike the Jieqi program that requires hundreds of gigabytes of space, it only requires about 20 gigabytes.

After completing the selection, click Deploy Now below and wait for the machine configuration to be completed, which is estimated to take five minutes.

After completion, click server in the left menu to see your newly created VPS. Clicking on the name will jump to the interface showing machine information

2. Environment and domain name configuration

1. Use Xshell to connect to the above VPS. If you don’t know how, you can read the original Xshell tutorial: Xshell usage tutorial

2. To install the pagoda, you can see the installation tutorial: Pagoda installation Tutorial

3. Configuration environment, the environment required by ptcms: nginx+php5.6+mysql5+Memcache, the configuration diagram is as follows, click one-click installation and wait for the installation to complete. During this period, you can resolve the domain name, because domain name resolution results also take time.

4. After the environment installation is completed, remember to install Memcache. If you can’t find it, look at the picture below:

5. Domain name resolution. You need a domain name to build this novel site. I use the second-level domain name of 6 Blogs for resolution. My domain name is placed in Alibaba Cloud. The resolution effect is relatively fast, xs.kxceping .com

6. Create a new website. After the environment installation is completed, let’s create a new website.

7. Upload the file, find the directory where you just created the website, click the file on the left menu, the directory you just created will be displayed, click Go to upload the file, and decompress it online.

8. Configure the conf file. The configuration content that needs to be entered is as follows:

if (!-e $request_filename) { rewrite ^/(.*) /index.php?s=$1 last; }

9. Create a database,

3. Installation and use of ptcms

1. Installation

After completing the above settings, we can start the installation program. Open the domain name you just parsed. I configured xs.kxceping.com

Click to start the next step, which requires you to configure the website name, backend username and password.

Click to proceed to the next step to configure the database. Just fill in the information in the database we created before.

Click Start Installation to complete all installation steps.

Usage tutorial

Backend login address: xs.kxceping.com/admin.php (change the domain name to your own)

The background interface is as follows:

We can configure some basic content in the basic settings. If you want to configure the information of the list, content, directory and other pages, you can open the TKD settings. It is recommended to select cover localization in the collection settings.

The following is an introduction to configuring collection. Open Content-Rule Management-Collection Rules and delete all the original collection rules. Basically, they are no longer usable. The blogger has put some usable collection rules in the compressed package of the program. , let’s talk about how to import and configure automatic collection.

1. Import rules, select the rules provided by the blogger in the rule import, and import them directly according to the following configuration.

2. Set up automatic collection. In the list of collection rules, click Collection, follow the configuration below, and choose to join the background scheduled task.

3. Start the collection program, wait a few minutes, we open the domain name, and you can see the collected novel content.

Okay, that’s it for the tutorial. If you don’t know how to do it, you can leave a message and let me know. But this is really a beginner’s tutorial. If you follow the above tutorial step by step, there will be no problem.

Recommended site searches: registration-free virtual space, php host space, rental space, German server, Wanwang space, dynamic mainland China IP proxy, icp registration, Korean independent server, Hong Kong high-defense server rental, foreign server,

Tutorial on using vultr’s VPS to build an automatically collected novel website

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