Essay submission – only 6 steps! Lightweight application server quick site building guide

Time:2022-4-4

This article is submitted by users of Alibaba cloud lightweight application server essay solicitation activity and has been published under the authorization of the author (nickname LNG China).

A few years ago, by chance, I saw the personal website building method. At that time, I didn’t understand anything, and even couldn’t distinguish the server from the virtual host, but I still tried it: xixx code, tengx cloud, Alibaba cloud, and some small foreign websites. I tried them all once. Due to the lack of knowledge, they all failed.

Later, after reading many tutorials on BiliBili, I tried again and succeeded this time. I am a high school student. If I can succeed, then refer to my steps. Most people should be able to learn and successfully build their own website.

Alicloud’s lightweight application server is really simple and easy to operate, at least more convenient than ECs. As long as you install a pagoda panel, you can build a very good website. Next, follow me to teach you how to use Alibaba cloud’s lightweight application server to build your own website.

Step 1: buy a domain name

To build a website, you first need a domain name, which is commonly known as the website. For example, my website:https://www.wangyuan21.com

First register a favorite domain name on wanwang.

file

Enter the desired domain name, then search and click buy. New users enjoy great discounts. Domain names are generally bought for one year at a time (in fact, they are rented. It’s better to understand when you buy them).

Domain name price reference: Cn is 16 yuan xyz、. top、. link、. Ltd and so on are all 1 yuan.

Then click the console, domain name management and real name authentication (you can’t access it without real name authentication).

Step 2: purchase server

Alicloud lightweight application server is selected this time. Its benefits are:Simple, cheap and suitable for novices

Log in from Alibaba cloud’s official website and enter the product page.

file

Click the product on the home page and select elastic computing and lightweight application server.

file

Click the “buy now” button in the banner area above to enter the instance selection interface of lightweight application server.

file

In the instance selection interface, it is recommended to select system image. The application image version may be old. Install the new version yourself.

Select system image (CentOS for Linux system, windows 2008 R2 or windows 2019 data center version for Windows).

CentOS occupies less memory, so don’t worry about Caton; If windows uses 2-core 1g instances, there may be Caton. Windows recommends only the two versions I mentioned (2008 R2 has the most tutorials on Baidu, and 2019 operating system is the latest, which is easier to understand).

be careful:

  • CentOS based Linux system and Windows system do not support interchange (Chinese mainland can).

  • Chinese mainland servers need to be filed for about a month.

  • If you buy Chinese mainland servers, you suggest buying at least 3 months.

  • If you are a new user, you can go to the cloud station to get coupons for only 99 yuan a year.

  • System disk: the system disk can be bought or not, which is similar to the memory module of a computer. If you don’t buy it, there is only a 40g system disk (similar to the C disk of windows).

Step 3: server settings

1. Reset password

Enter the console, click server management, and click the small card of lightweight application server.

file

There is a line on the left to reset the password (as shown in the figure below). Click reset password, set a password, enter the verification code, and restart the server.

file

2. Bind domain name

Click the site settings on the left, add the domain name, enter the domain name you just bought, and then click OK (if you don’t buy the domain name in Alibaba cloud, you need to resolve it first).

3. Open port

Add rules under the security firewall on the left, add 8888, and the rest remain unchanged.

file

Click “Overview” on the left and return to the overview interface. There is a remote connection in the upper right corner. Click the connection (you can also use third-party software, such as xshell 7, etc.).

file

Step 4: install the pagoda panel

Enter the pagoda installation command (Linux) in a command line interface like this. (Windows remote connection looks like a computer desktop)

file

Pagoda panel link address:https://www.bt.cn; Select which version to install according to the server system.

file

CentOS pagoda installation command:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Windows can directly download exe files and drag them to the remote window of the server; Linux will make you belong to y.

Windows can directly double-click the installer and agree to the firewall release; After installation, the following information will be prompted:

  • Internet panel address:

  • Intranet panel address:

  • Username:

  • Password:

(here is a line of yellow tips)

Copy the address of the Internet panel, paste it into the browser, visit, and enter the user name and password to log in. Bind the mobile phone number and you can use it normally.

Step 5: website settings

At this point, you can close the remote connection. The following is the interface after login:

file

Click the website on the left, create a new site, and enter the domain name you bought.

file

Create MySQL database; FTP can be created or not. Click OK.

Enter the root directory of the website and delete the default file; Upload your own website program or code.

file

Here, the website is completed, and the interface is shown in the following figure:

file

Step 6: Website Optimization

1. Modify panel settings to improve security

The safe entrance can be changed to convenient for your memory; The panel port can also be changed from 8888 to other; The user name and password of the panel can be changed.

file

2. Set regular backup in the scheduled task to prevent data loss

file

3. Create server snapshot

When you create a snapshot, you can back up the data and restore the data to the way it was when you created the snapshot. The snapshot function is also on the left. Click snapshot and click create snapshot.

file

Summary:

Through the above six steps, you can successfully build your own website using Alibaba cloud lightweight application server. Isn’t it quite simple? Friends who have the dream of being a webmaster, try it quickly~