Pagoda panel creates multiple port deployment projects under the same server (lightweight application server one-click deployment website, blog, GltLab full version)

[Use a lightweight application server to quickly build your own GitLab from scratch] icon-default.png?t=M4ADhttps://blog.csdn.net/qq_38629292/article/details/123982234

In the previous blog, we described in detail how to purchase and use our own lightweight application server from scratch, and how to quickly build our own GitLab with zero code.

This time we will explain in detail how to deploy multiple port projects under the same server through the pagoda panel.

First of all, we go to our own server firewall and open several port numbers to allow access from the external network. The next few projects will be accessed through these ports.

 

Project 1: Personal website

We deploy the website normally according to the process.

1. After the purchase of the domain name record is successful, it is resolved to the server

It takes a certain amount of time to file a domain name, and it is estimated to be about 5 working days under normal circumstances.
If you need a domain name, you should purchase the domain name in advance and successfully file for the record, then click "Resolve" in "My Domain Name" to enter the domain name BNS resolution interface, and resolve your domain name to the server IP.

Here, the host IP can be filled with the server IP address.

If you don't need a domain name for the time being or want to deploy the project under other ports (when Pagoda creates a new site, the default is port 80), please go directly to Project 2: Blog.

2. Log in to the pagoda panel and add your own items under the website menu.

Note: If your pagoda panel is like mine, you chose not to install the recommended environment in the previous chapter, then you now need to choose to install your own project environment according to your project type: PHP/JAVA/NODE. Fill in your own domain name address in the input box here, and select configuration items such as database and PHP according to your own needs.

3. Deployment project

In fact, after the second step, Pagoda has created a default file for us, and you can already access your own domain name normally. 

 We find the website directory in the site settings and we can see that the project files are all under /www/wwwroot/[your domain name].

So go directly to the file menu, go to this folder and upload your project to deploy successfully.

 

Project Two: Blogging

At this point, we have deployed our project on the server and completed domain name resolution.

However, when creating a website, the correct domain name must be entered each time and cannot be entered repeatedly, so there are several problems:

1. If I don't have a domain name for the time being, I just want to visit my website through IP.
2. If I want to deploy multiple projects under this domain name/IP.

Then we can do this, taking one-click deployment of a blog through WordPress as an example:

1. One-click deployment of WordPress

1. Go to the Pagoda software store menu, select one-click deployment, search for WordPress, and select one-click deployment.

2. Enter deployment information

At this time, because we have already used our domain name when deploying project 1, when deploying WordPress, we will be prompted that the domain name already exists and cannot be deployed. 

So here comes the important point:
At this time, we only need to enter any domain name/IP in the correct format to complete the deployment (the second-level domain name I entered is invalid at this time).

3. Modify site configuration information

At this point, when we go to the website menu, we can find that our site already has an invalid domain name, and accessing this domain name will also prompt us that we cannot access it.
So at this time, we click on the setting interface of the site, add our domain name + port in the domain name management, and then delete the invalid domain name filled in before. (The external network access of this port needs to be opened in the server firewall).

Fourth, configure your blog to successfully deploy.

Just set it up step by step

If you forget the database account password, you can go to the database menu on the pagoda panel to find it.

 

alright. The above is the full version tutorial of one-click deployment of lightweight application servers for websites, blogs, and GitLab. Thank you for watching!

Oh, right. Don't forget to like it~

 

 

 

Guess you like

Origin blog.csdn.net/qq_38629292/article/details/125134214