httpd build

httpd construction

by Tansty

bilibili video teaching: b station video

1. Server

1. Concept

As hardware, servers usually refer to computers that have high computing power and can be used by multiple users. There are many differences between a server and a PC. For example, a PC usually only serves one user at a time. The server is different from the host. The host is used by the user through the terminal, and the server is used by the client user through the network. Therefore, in addition to the terminal device, the network can be used to use the server computer, but the user can use the server after connecting online On the specific service.
Insert picture description here

2. The main server system
img

Windows2003

Windows2008

img

centos

Two, centos

CentOS is an enterprise-level Linux distribution based on the freely available source code provided by Red Hat Linux. Each version of CentOS will receive ten years of support (through security updates). New versions of CentOS are released approximately every two years, and each version of CentOS is updated regularly (about every six months) to support new hardware. In this way, a safe, low-maintenance, stable, highly predictable, and highly repeatable Linux environment is established. CentOS is the abbreviation of Community Enterprise Operating System.

Three, the basic commands of centos

1、yum

yum [options] [command] [package …]

1. List all updateable software commands: yum check-update
2. Update all software commands: yum update
3. Install only the specified software command: yum install <package_name>
4. Update only the specified software command: yum update <package_name>
5. List all installable software list command: yum list
6. Delete package command: yum remove <package_name>
7. Find package command: yum search
8. Clear cache command:
yum clean packages: clear cache Packages under the directory
yum clean headers: clear headers under the cache directory
yum clean oldheaders: clear old headers under the cache directory
yum clean, yum clean all (= yum clean packages; yum clean oldheaders): clear the packages under the cache directory And old headers

2、systemctl

systemctl is a system management command in centos, used to start/stop a service

E.g:

systemctl start httpd.service open

systemctl restart httpd.service 重启

systemctl stop httpd.service 停止

3.cd

Commands to enter different folders

Four, the basic commands of vim editor

Basic concepts of vim

Basically, vi can be divided into three states, namely command mode, insert mode, and last line mode. The functions of each mode are as follows:

1) Command mode command mode)

Control the movement of the screen cursor, delete characters, words or lines, move and copy a section and enter Insert mode, or to last line mode.

2) Insert mode (Insert mode)

Only in Insert mode, can you do text input, press "ESC" key to return to command line mode.

3) Last line mode

Save the file or exit vi, you can also set the editing environment, such as searching for strings, listing line numbers, etc.

Five, the use of commands built by httpd

1. Download httpd

yum install httpd

2. Turn on the service

systemctl start httpd.service

3. Homepage path

cd var / www / html

4. Visit the website

127.0.0.1

yum install httpd

2. Turn on the service

systemctl start httpd.service

3. Homepage path

cd var / www / html

4. Visit the website

127.0.0.1

Guess you like

Origin blog.csdn.net/tansty_zh/article/details/107915836
Recommended