Home>Article>Topics> Teach you step by step how to deploy node koa express project in pagoda

Teach you step by step how to deploy node koa express project in pagoda

藏色散人
藏色散人 forward
2022-10-31 16:25:48 2826browse

This article is provided by the tutorial column ofPagoda Panelto introduce you step by step how to deploy the node koa express project in the Pagoda Panel. There are pictures for each step~ I hope it will be helpful to you if you need it!

Environment configuration before deployment: Install the pagoda panel image, open port 8888 and port 22, and the ports for project deployment. For example:

Teach you step by step how to deploy node koa express project in pagoda

1/15666 opens all ports from 1 to 15666, which will facilitate the opening of other ports in the future. Log in to the pagoda panel, the effect is as follows

Teach you step by step how to deploy node koa express project in pagoda

Upload the node project to the www/wwwroot folder

Teach you step by step how to deploy node koa express project in pagoda

Download in the software store pm2node process manager

Teach you step by step how to deploy node koa express project in pagoda

Download the corresponding module and corresponding node version number

Teach you step by step how to deploy node koa express project in pagoda

Teach you step by step how to deploy node koa express project in pagoda

Then add mysql database, upload sql, and import.

Teach you step by step how to deploy node koa express project in pagoda

After completion, click Manage to view the effect, as follows

Teach you step by step how to deploy node koa express project in pagoda

Change the account and password of the node project mysql

Teach you step by step how to deploy node koa express project in pagoda

Add node process

Teach you step by step how to deploy node koa express project in pagoda

Add successfully and display

Teach you step by step how to deploy node koa express project in pagoda

If the port If the number is off, it means that the addition was unsuccessful. The reasons may be: 1. The port is occupied, 2. The port is open and a security group needs to be configured. 3. Database connection failed 4. There is a problem with the project logic and an error is reported. You need to be patient to solve it until the port number is the port number that your project runs on. After the process is added successfully, in the security center column of the Pagoda panel, release 3006

Teach you step by step how to deploy node koa express project in pagoda

. Then you can access the interface through the IP port. The effect is as follows

Teach you step by step how to deploy node koa express project in pagoda

The above is the detailed content of Teach you step by step how to deploy node koa express project in pagoda. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.im. If there is any infringement, please contact admin@php.cn delete