Fool operation to build personal website
1. Buy domain name and ECS first
It’s usually convenient to pay for things…
Baidu, Tencent, Ali can buy, and as long as you give money, everything is clear.
I won’t go into details here. Personal recommendation of Baidu. Because that’s what I use.
2. Later, I will pay money to solve the problem and configure the ECS (the domain name I bought will not be used first)
Find the instance you bought and open the VNC console
Enter the account password (the account is generally root)
The password will be sent to you by email. You can change it yourself.
3. landing VNC
The next step is to enter the interface (CentOS interface is similar to Linux, which is very convenient to operate)
4. Establish nginx server
Input: Yum install nginx – y
(forget the screenshot. Here is a Linux interface with a black background)
After the download and installation is successful, try it
Type your public IP on the web!
Here’s the illustration. A kind of
Look at this in the back
5. Configure nginx
The file address is: (the software is xftp5, which can be used in the same way as other FTP. Just type a password and account number for the login method, not to elaborate)
Save the nginx.conf file to modify it. Look at this in the back
Modified by nginx.conf:
Domain name resolution is very simple: (it is not difficult to buy things)
Find the directory of your website
6. After the configuration is successful, try to log in
Html is the root directory of your website. Put the website directly and fix it
Now the website belongs to static website, no data interaction, only belongs to an ornamental website!!
Previous static websites:
Here comes the most troublesome.. Website filing!!!
I have time to write another one later. If it’s helpful to you, pay attention and praise.