Egg is deployed to the server
I wrote some interfaces with egg on a whim, and this article documents the process of deploying an Egg from a pagoda to a server
First, the server uses Tencent Cloud standard S4 server
Without further ado, let’s get to the point
First step: install the pagoda
The Pagoda Linux panel is a server management software to improve the efficiency of operation and maintenance
Pagodas are too friendly for those who are new to the server.
The first step to install pagoda is to go to Tencent cloud to create a security group, and then open 8888 interface
For details about security group operations, go to www.bt.cn/bbs/thread-…
Then open Tencent cloud server terminal to execute the following command to install the pagoda
Yum install wget - y && wget - O the sh http://download.bt.cn/install/install_6.0.sh && sh the shCopy the code
After completion, you can access the pagoda through XXX.XXX.XXX. XXX :8888. Remember to save the password!!
This is what it looks like when it enters
The second step
If pM2 is installed in a pagoda, the Egg-Cluster is built into the Egg framework to start the Master process. The Master process is stable enough that it does not need to use the pm2 daemon module. The main reason for installing PM2 is because PM2 comes with Node and NPM and doesn’t need to be manually installed.
Specific operation steps:
Step 3 Create a site
Click Create site and follow the instructions
Step 4 upload the project
Just open the file and add the wwwroot location and drag the project in
Step 5 Start the project
Open the terminal, switch to the corresponding directory, and execute NPM start.