Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

8 minutes
two hundred and seventy-two
zero

This article is suitable for Xiaobai, which takes you step by step to build your first website on ECS through WordPress!

The following four things need to be done to launch a website. This article will focus on the third part, how to deploy a website server

1、 Basic concepts

1. A website deployment requires four environments: operating system environment, web service environment, database environment, and web page development language environment. That is to say, these programs need to be prepared, installed and debugged when building the station

2. LAMP: This is the abbreviation of four environments. L is Linux, A is Apache, M is MySQL, and P is PHP; There is also LNMP, where N is Nginx

3. The domain name is the web address, but the composition of the domain name is hierarchical, such as //www. ucloud.cn

4. If you want to visit a domain name, you need to make a one-to-one correspondence between the domain name and the corresponding ECS public IP address, and announce it on the DNS server. This action is actually a process of filing in China. Your domain name will be resolved by DNS only if the country recognizes your website. The domain name of. com does not need to be filed abroad, so many people choose to build a website in Hong Kong.

2、 Deployment process

1. To purchase an ECS, select a Linux system, and obtain an EIP, you need to apply for a UCloud account in advance

2. Install the Apache service so that the server can respond to web requests and display the website externally

3. Install MySQL database and establish database and table for website

4. Install the PHP environment so that Apache can interpret PHP web pages

5. Install Wordpress and configure basic information

6. Successfully configured to access the website

Part 0: Create virtual machine UHost for this experiment

0. Log in to the UCloud console

visit // console.ucloud.cn And log in with your account and password.

If the account is not authenticated by real name, please complete the real name authentication process first.

1. On the console page, switch the project to the previously created "Uchuangying", and click "All Products" in the upper left corner of the page and click "Virtual Machine UHost" to enter the virtual machine UHost management page.

2. Click "Create Virtual Machine"

3. Select "Beijing II" region and "Zone B", and select "CentOS 6.6 version" for the image. Be sure to select the correct operating system version number, otherwise the following operations may report errors,

4. Select Firewall UFirewall as "Web Application Recommendation", fill in the password, such as UCloud UHost, and use the default value for others.

5. Select "Charge by Hour" on the right side of the page and click Purchase.

Part 1: Remote access to virtual machine through SSH tool

6. View the virtual machine IP address.

Please create a virtual machine in zone B of Beijing II and bind the EIP. After creation, you can view the EIP bound to the virtual machine on the console.

7. Download PuTTY/XShell and other tools.

You can directly search for "PuTTY" in the search engine and download it.

8. Fill in the EIP address, user name (CentOS defaults to root) and password on the virtual machine to connect.

9. Log in with an account and password. The default account is root; The password is the password filled in when creating the virtual machine.

10. Run the command to view the file after login.

cd /

ls -alh

11. Execute the command ping the UCloud official website.

ping www.ucloud.cn

Part 2: Install httpd, PHP, MySQL and other components on the virtual machine

12. On the command line, execute the following command to install httpd

yum install httpd -y

13. Install PHP

yum install php -y

14. Install MySQL

Note: Please copy each command line to the command line for execution.

yum install mysql-server -y

yum install php-mysql

15. Start Service

service httpd start

service mysqld start

16. Access the default page of httpd through the IP address.

Part 3: Installing WordPress

17. Download the source code of WordPress software.

cd /var/www/html

wget // ucy.cn-bj.ufileos.com/w ordpress-5.1.3-zh_CN.zip

18. Extract the WordPress source code.

Install the unzip tool first.

yum install unzip -y

Extract the WordPress source code. Be sure to decompress in the/var/www/html directory, because the default website path configured by httpd is in this folder

unzip wordpress-5.1.3-zh_CN.zip

19. Access the EIP address "/wordpress" bound on the virtual machine in the browser to install WordPress, for example:

106.75.71.109/wordpress/

Do not click "Start now!" This means that the initial file of Wordpress has been successfully installed and the httpd service has been started. You need to configure the database before you can start configuring Wordpress

20. Download the modified wp-config.php file through the following command. The database name, login user name and password have been modified in the file. The wp-config.php file is a configuration page used by Wordpress to configure the database, user name, and password. This is to avoid complicated operations such as modifying configuration commands, and directly provide a simplest version of the configuration file. You can change the user name and password of wordpress and other information here by yourself, as long as they are consistent with the ones you created. For example, the root password, database password, etc. are all modified here. The modification method is vi wp-config.php (you can use the vi or vim command under Baidu Linux)

cd /var/www/html/wordpress/

wget // ucy.cn-bj.ufileos.com/w p-config.php

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

21. Create a database on the command line.

mysql -u root -p

Enter Enter directly at the prompt for password, that is, no password is required, and the default password is blank.

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

CREATE DATABASE wordpress; # The database name here must be consistent with that in the wp-config.php file above

exit

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

22. The classic installation process of WordPress is to access the EIP address "/wordpress" bound on the virtual machine in the browser, as shown in the following example:

1.1.1.1/wordpress

Now start configuring Wordpress and click "Start now!"

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

Click "Install Now", do not delete

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

Part 4: Publish the first page

22. Log in to the WordPress background.

23. Publish the first article.

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

24. After publishing the completed post, click "View Post" to access the first blog post. It can also be sent to other partners to visit.

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure
 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

So far, congratulations! Your first website has been successfully created. If you do a good job of filing the server, you can access it through the domain name!

Pit stepping reminder:

If the prompt "Awkward! This page cannot be displayed" is a fixed connection problem, you need to change it to "plain" in "Settings" - "Fixed Connection" - "

 Super detailed website building manual, Xiaobai completes the first website in 5 minutes, free website building procedure

Author:

Roy UCloud solution architect

This article is written by: Shallow singing Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/2898.html
Shallow singing
author

Related recommendations

1 year ago (2024-02-20)

What technologies have been applied and developed in the field of new media, and the application of new technologies in media

In the field of new media, many technologies have been applied and developed. These include: cloud computing: cloud computing technology enables new media companies to develop and deploy applications more quickly, and can dynamically adjust resources according to needs. Big data: New media companies can use big data technology to analyze massive user data, understand user preferences, behavior habits and other information
nine hundred and seventy-one
one
1 year ago (2024-02-20)

WMS warehouse management system, promoting the transformation of warehousing from extensive to fine management, WMS warehouse management

Warehousing is extremely important for the manufacturing industry and is an important guarantee for the survival and development of manufacturing enterprises. However, with the expansion of manufacturing enterprises' business, the traditional warehouse management has been unable to respond to business changes quickly. The extensive management mode not only makes the warehouse operation not smooth, but also increases the storage cost. Therefore, it is necessary for manufacturing enterprises to deploy a WMS warehouse management system
eight hundred and forty-eight
one
1 year ago (2024-02-20)

How to select MES system? Main contents of MES production management

Original title: How to select MES system? The main content of MES production management Production and manufacturing activities are the core activities of manufacturing enterprises. As the entity unit of manufacturing activities, planning objectives and the realization of enterprise value, workshop management is the focus of enterprise management. With the rapid development of manufacturing industry, MES is the focus and current hot spot of manufacturing enterprise information automation system
nine hundred and sixty-four
zero
1 year ago (2024-02-20)

The WeChat management system can manage the information content of WeChat more effectively. Let's manage the data of WeChat here

Original title: WeChat management system manages the information content of WeChat more effectively. Many enterprises will assign work to WeChat, because no one wants their personal WeChat to mix work and other related knowledge, but someone will always use the company's loopholes to do something harmful to the company's interests. Don't think such things are rare. I learned about a media financing company in Shenzhen. They have 3
seven hundred and seventy-seven
zero
1 year ago (2024-02-19)

Student electronic file management system, three-dimensional communication space of "home", "school" and "community", and school electronic files

In the era of big data, in the process of recording the growth of students, the school reexamines the management of student files, moves with the times, and promotes the reform of student growth files with new thinking. "Electronic files of primary and secondary school students' growth records" have been gradually introduced into educational management, and show vigorous vitality. Student file management system is an indispensable part of the school, its content for the school
five hundred and seventy-one
zero
1 year ago (2024-02-19)

Ruizhe Information: Select Sitecore? Or... just six steps to choose a content management system, Ruizhe Information Technology Service Co., Ltd

The content management system (CMS) is an important part of the success of website construction. At present, the content management system on the network is relatively complex. It is not easy to find a good content management system that is very suitable for the current digital marketing environment. Before we compare the functionality, operation, scalability, security and other specific performance of the major CMS systems, we need to achieve
three hundred and forty-three
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: