banner
阿道

阿道

阿道博客

Rsshub Deployment and Usage Method - Rss Subscription Source Generation Tool - Baota Environment

Setting Up the Environment#

Vultr VPS host, with the installation of the Baota panel (it's optional, but it makes related configurations a bit simpler).

Starting Deployment#

Source Code Download#

Log in to the server via SSH (I'm using a Mac here, you can directly use the command below to log in; Windows users can use Putty).

$ ssh root@127.0.0.1

Download Rsshub Source Code:#

$ git clone https://github.com/DIYgod/RSSHub.git $ cd RSSHub/

Install Dependencies:#

$ npm install

or using yarn:

$ yarn

At this point, we can start Rsshub:

$ npm start

or:

$ yarn start

Alternatively:

$ pm2 start lib/index.js --name rsshub

Freeing Up the Port:#

Since it was previously installed, using npm to start will show the following error:

error: uncaughtException: Error: listen EADDRINUSE: address already in use :::1200

This means that port 1200 is in use, so we need to free it up first.

Use the command to check the PID of the process occupying port 1200:

$ netstat -lnp|grep 1200

It will display the following content:

tcp6 0 0 :::1200 :::* LISTEN 20959/node

Then use the command to check the process details:

$ ps 20959

20959 pts/2 Sl+ 11:13 node lib/index.js

Confirmed to be rsshub, we will use the command to kill the process:

$ kill -9 20959 #-9 means forcefully terminate the process.

Run the start command again:

info: Listening Port 1200
info: RSSHub start! Cheers!

Successfully started.

Running in the Background#

Screen Command#

Create a window:

$ screen -S rsshub $ npm start

After starting successfully, you can hold down the Ctrl key and then press A+d to exit the current window, and rsshub will run in the background. We can use the command to check the status of the screen running in the background:

$ screen -ls

You can also use the command to resume:

$ screen -r program_id

Deployment Successful#

Visit http://127.0.0.1:1200/

Snipaste_2019-09-23_16-42-29

![Rsshub Deployment and Usage Method - Rss Subscription Source Generation Tool - Baota Environment.png]

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.