Use a lightweight application server to quickly build your own GitLab

    As we all know, due to some special reasons, a same-sex dating website is often accessed slowly or even sometimes cannot be accessed, which greatly affects the efficiency of our code management operations. So for those non-open source projects, using GitLab to build your own online code management warehouse is a good choice. So is there any way to build GitLab quickly and efficiently? Yes, that is - lightweight application server.
    
    Here I have compared the lowest-end lightweight application servers of Alibaba Cloud, Baidu Cloud, and Tencent Cloud, and found that Tencent Cloud has a slight advantage in cost performance, but the price of 50 yuan/month still makes me somewhat resistant. Unexpectedly, recently, Tencent has a special discount for the first order, 0.20% off the first-year fee for lightweight application servers, which is really delicious.
    
    So the following will show the specific steps of Tencent Cloud Lightweight Application Server to quickly build GitLab.

[Tencent Cloud] The first order of popular cloud products is a flash sale, 2-core 2G cloud server is 45 yuan/year https://curl.qcloud.com/FB7nrhLt

Step 1: Purchase a lightweight application server

  • Region: Here it is recommended to choose the region closest to you, which can reduce the access delay and increase the access speed.
  • Mirror image: Here it is recommended to choose: Pagoda Linux Panel 7.8.0 Tencent Cloud Exclusive Edition, in order to quickly build GitLab in the future.
  • Instance package: Friends who have the conditions here are recommended to choose 4GB of memory, because the installation of the latest community version of GitLab requires no less than 4GB of memory. I can be regarded as stepping on a pit for everyone. (It was later discovered that the GitLab Chinese Community Edition can only create up to 10 projects, while the latest Community Edition is unlimited, so please choose a package according to your own needs!)

Step 2: Enter the server application management interface

In the application management interface, we found that the system has installed Pagoda Linux for us and started it on port 8888. Since this port is not open by default, we need to enter the firewall to allow external users to access this port.

  

Step 3: Allow external users to access Pagoda Linux in firewall settings

Add rules on the firewall interface. Create a new rule to allow external users to access Pagoda Linux, namely port 8888.

Step 4: Log in to the server with one click to obtain the initial user name and password of the pagoda panel

Copy the command and click to log in to the server. After pasting the command, get the initial username and password of the pagoda panel.

Step 5: Open the external network access address and enter the pagoda panel interface

Users who do not have a Pagoda account, please register. After the registration is successful, return and log in again. In addition, when logging in for the first time after successful login. The system will prompt you to associate the Tencent Cloud API key with the recommended installation environment, here you can choose to close and ignore it.

Step 6: Enter the software store to search for GitLab and install it

Here, if your server memory is greater than 4GB, you can choose the latest community version. If you only have 2GB like me, you can only install the Chinese community version. It will take about ten minutes to install, please be patient.

Step 7: GitLab is successfully installed

It prompts that after the installation is successful, you can view the GitLab Chinese community version on the software store-installed interface, and click to view the GitLab access address.
Note: Since the port assigned to GitLab is not open, GitLab’s external network is still inaccessible at this time, you need to return to the lightweight application server and open the GitLab port again according to the third step

Step 8: Return to the lightweight application server and open the GitLab port to allow external network access

Open the GitLab port again to access it.

Step Nine: Welcome to GitLab!

Users who do not have a GitLab account may need to register at this time. At this point, GitLab has been successfully installed and is ready to use. You're done! ! !


 

 Yes, we have successfully installed and can use GitLab without typing a single line of code. And we also have our own lightweight application server.
Of course, this is just the beginning of a lightweight application server, and I will update the construction of small websites, blogs, and Web application services in the future. Interested friends are welcome to like, leave a message and discuss!

Guess you like

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