Teach you to build a website step by step (zero foundation, no need to write code)

There is no preface and the text starts directly. Building a blog requires a server, domain name, and blog program.

Commonly used blog programs include wordpress, z-blog, typecho, etc. Among them, wordpress and z-blog are the simplest, and typecho requires certain technical content, so it is not recommended here for the time being.

The program selects and prepares the server and domain name, and domestic servers need to be filed for resolving domain names. If you find it difficult to file, you can choose a foreign server.

1. Preparation

1. Order server

The first choice is to enter Ciyun Data, use Baidu on the official website, and order an American high-defense cloud server (ChatGPT must use a foreign server, and the US high-defense cloud server of Lanmi Cloud has been successfully built for testing. There are possible steps to purchase servers from other service providers. some are different)

The configuration can be chosen at will. It is recommended to have 2 cores and 2G or more. If the configuration is too low, there may be problems installing Python.

Note that when ordering, the operating system must choose centos7.6 pre-installed pagoda

After the purchase is complete, enter the server management panel, where there are public network IP and system password, these two are what we need to use.

2. Get your ChatGPT key

Let me explain here, if you want to get a ChatGPT key, you must first have a ChatGPT account (you can register yourself or find someone to buy one), and you must have scientific access to the Internet, because chatgpt is officially prohibited from being used in China, and you cannot log in to the openai official website (do not understand If you want to go online scientifically, if you have purchased a server from Ciyun Data and have an account, you can ask Ciyun Data’s online QQ customer service to help you obtain the key).

Enter openai official website:  https://beta.openai.com/overview  , log in your ChatGPT account

After the login is complete, click the avatar in the upper right corner and click View API Keys

2. Configure Pagoda

1. Open your browser, enter http://public network ip:8888 and open it (for example: my server public network ip is 154.12.57.27, that is to visit http://154.12.57.27:8888)

Set a user name and password that you can remember, click OK

2. Use the username and password you just set to log in to the pagoda

3. Enter your official registered account password in Pagoda (not the one you just set), if not, click Free Registration, register one first and then log in

4. Click Update in the upper right corner to update the pagoda version to the latest version

  1. When you log in to the background management interface of Pagoda for the first time, a window will pop up to prompt you to install the operating environment of the website. Select LNMP for fast installation, and keep the default version.
    insert image description here
    Wait for the environment installation to complete:
    insert image description here

Install a website builder

Choose WordPress

  1. Download and install WordPress
    insert image description here
    and click Website -> Add Site, remember to save the database account and password you set, which will be used later

insert image description here

  1. Upload the WordPress source code to the server
    Click File, click into the folder created in the previous step
    insert image description here
    Upload the WordPress compressed package to this directory
    insert image description here
    Double-click the compressed package to decompress, and click into the decompressed directory:
    select all files in this directory, and click Cut:
    insert image description here
    Return to the previous directory to paste:
    insert image description here

  2. Install WordPress
    and then enter the URL of the server’s external network in the browser to install.
    insert image description here
    Enter the database name, user name and password, and keep the default database host and table prefix.

insert image description here
Click to run the installation program
insert image description here
and fill in the basic information of the website:
insert image description here
log in after the installation is complete (the account number and password are filled in in the previous step):
insert image description here
enter the background management interface of the website:
insert image description here
this is the front-end page of the website that can be accessed by entering the server's external network IP in the browser :
insert image description here

4. Change the theme of the website

The website is built, but the theme is too simple, so it needs a better theme. In the WordPress background, click Appearance -> Themes
insert image description here
to install new themes through the official website, or you can download other themes from the Internet and upload them to WordPress.

5. Domain name registration and resolution

Domain name registration
There is an event just in December. Newly registered users can open a 1 yuan blind box, and 1 yuan can buy a one-year domain name.
After purchase, click on real-name authentication:
insert image description here
upload the information to complete the real-name authentication
insert image description here
, then select the domain name for analysis:
insert image description here
click on management analysis:


fill in the public network IP address of your server:

then you can access your personal website through the domain name in the future.
Website filing After completion, when I visit the domain name with full of joy, it appears:

 

 

 

This is caused by the fact that I built the website through the server ip address when the website filing was not completed. The solution is
Pagoda Panel->Website->Find the server IP address->Settings->Configuration file->server_name
I did not file successfully before , so I changed the server_name to the ip address of the server, in order to build the website in advance, but after the filing is passed, when you directly access the domain name, it will appear: Your request does not find a corresponding website in the web server!
So, if we want to access domain names such as: iculand.com, aiproa.com, our method is to change the server_name of the configuration file in the original website settings to your website domain name, so that it will be mapped to by visiting your public domain name The website content deployed on your server ip. (Of course, if the name behind your server_name is wrong, it will also appear: **Your request did not find the corresponding site in the web server!**) Then the above error occurred, the reason


is wordpress in the pagoda panel The corresponding pseudo-static is not turned on. Pagoda panel - domain name - settings, find the pseudo-static column, as shown in the figure below, find the pseudo-static corresponding to the program you use, and finally save it, and the 404 error will not appear again.

 

 

 

Finally, remember to log in to the WordPress background, and set the site address and WordPress address as the domain name address in the settings, so that you can access the dashboard through "domain name/wp-admin" in the future.

Website filing

Finally, carry out website filing
, fill in the form, and follow the requirements step by step:

the entire website building process is now over. The next task is to beautify your personal website and create a page.
If anyone wants to read it, I will write another blog to introduce it.

 

Guess you like

Origin blog.csdn.net/weixin_47059371/article/details/131017436