当前位置:网站首页>How to use the pagoda panel to deploy the full stack project of node to the server
How to use the pagoda panel to deploy the full stack project of node to the server
2022-07-26 01:45:00 【A passing rookie】
Premise Conditions 1 and 2
1, Buy a server reminder Hong Kong servers do not need to be filed ( Filing requirements 20 God ) You can choose Hong Kong server
2, Register the domain name on the platform where you purchased the server 、 Domain name resolution If this is the first time , So congratulations To review the real name template, you have to 4 God ! Why register the domain name on the purchased server platform Because domain name purchase 60 Enter within days “ Novice protection period ” No transfer out If you buy it on another platform domain name And eager to use , that You'll be crazy Or wait 60 God Or buy again . as for ssl certificate If it's not a big website Do not save user information No need ssl Certificates are used to encrypt Protecting information The specific process is solved by Baidu
3, Install the pagoda panel Baidu “ Pagoda panel ” choice linux Pagoda online installation enter server ip( Does not include port number )、 Server login password Follow the instructions , installation is complete Meeting Pop up the tower panel Remote connection address And the user name of the login panel 、 password , Be sure to write it down Create a new txt Copy the text and post it Collect qq Wechat or something Because this will only pop up once , These information are used for subsequent login to the pagoda panel
Pagoda panel - Easy to use Linux/Windows Server operation and maintenance management panel

Other Baidu knows more
4, Create a database on the pagoda panel And import the data table
4-1 Create database

there Database name Must be connected to the back end The database code is consistent Otherwise, you can't connect to the database

Fang Zheng's sentence The two must be the same Database name 、 user name 、 Password to connect to the database 、 Say it again The host address here is the local host address 127.0.0.1 Don't change This is not your server public network ip Address
4-2 Import data table
First step

The second step

Then it comes to this interface mysql database Be familiar with it. Then select the created database import .sql file

Okay database Data sheet done
5, Add node project
Add an episode here How to run the file packed by scaffold on the back end ?
=========================== The episode begins ==========================
npm run build Command how to run the packaged program locally
1. Global installation express-generator generator .
npm install express-generator -g
2. Create a express project ( One click back end to build a shelf ).( The name of the backend project I created here is server)
express Project name
3. Enter project directory , Installation related items depend on .
cd Project name
npm install // or cnpm install
4. Will be generated after packaging dist All files in the folder are copied to express Project public Under the folder ( Read this sentence three times , Mainly here , Mine is copied to server Project public Under the folder ), And then run npm start To start up express project .
5. Open the browser , Input localhost:3000 And you can see the effect .
remarks : This 3000 It's the port number you set yourself , If you set 888, Then you have to type in localhost:888.
===================== End of the episode ==========================
The fourth point above is the key 
5-1 Upload files
Then you can put Back end server The directory was sent to the server It has to be here www/wwwroot Under this catalog Don't fool around , If you click the wrong directory Come back to this directory

5-2 Add the project

5-3 Use your domain name Open this project
Why write such an article as a result of I read a lot of articles I feel that what I said is not very clear and easy to understand , So I sorted and sent it , Understandable buckle 1 Don't forget to give me a compliment !
边栏推荐
- "Weilai Cup" 2022 Niuke summer multi school training camp 2 i.[let fat tension] matrix multiplication j.[link with arithmetic progression] linear regression
- 格式化JS代码,调试JS代码
- [Unity] 二维洞穴地图随机生成
- 推荐系统-协同过滤在Spark中的实现
- What should I do when my blog is attacked by hackers?
- 谷歌浏览器调试工具使用基础版(一)
- 【Verilog数字系统设计(夏宇闻)4-----Verilog语法的基本概念2】
- Cross Site Request Forgery (CSRF): impact, examples, and Prevention
- pt-onnx-ncnn转换的问题记录(接yolov5训练)
- proto转换Dart | 项目使用Protobuf | flutter 使用grpc
猜你喜欢

3、 Pinda general permission system__ pd-tools-swagger2

言语理解-片段阅读的结构剖析练习

Three modes of CPU

The e-commerce project is written in the resume. How to answer it during the interview

Leetcode537. Complex multiplication (yes, solved)

2022年最新北京建筑八大员(材料员)模拟考试试题及答案

Record a failure caused by a custom redis distributed lock

8. Learn Mysql to create data tables

Understand Linglong platform unified access service from simple to deep Monet

The work of robot engineering and the puzzle of postgraduate entrance examination "volume" supplement
随机推荐
[tips] what if you type with double quotation marks on the keyboard and the quotation marks disappear
Qtreewidget dotted line setting
Analysis of zeromq
Overview of database stress testing methods
【Verilog数字系统设计(夏宇闻)4-----Verilog语法的基本概念2】
谷歌浏览器调试工具使用基础版(一)
网络之IP地址
Network performance evaluation tool ping/mtr
Ideal Path(UVA - 1599)
MDK编译过程及ARM编译工具链
The e-commerce project is written in the resume. How to answer it during the interview
言语理解中心理解总结
IP address of the network
3059. Sculpture (jzoj)
flink sql 如何配置打印insert实参日志呢
The work of robot engineering and the puzzle of postgraduate entrance examination "volume" supplement
3059. 雕塑(jzoj)
What is cross site scripting (XSS)?
Google gson usage details
大咖观点+500强案例,软件团队应该这样提升研发效能