The process structure and basic configuration of 002 Nginx

Source: Internet
Author: User

I. Overview

Before learning Nginx, let's first talk about the problem of Nginx's process structure.

Nginx is a standard master-worker model.

In Nginx, the main task of the master process is to complete the forwarding of the task, forward the request to the appropriate worker process, and then workwe the process to complete the specific task.

Now we can get a simple look at Nginx's simple model.

Two. Configuration files

In Nginx, there are a few of the configuration files that we need to use in the future, so let's start by familiarizing ourselves with these configuration files.

  

In the above figure, we can see a few of our configuration files.

[1]mime.type: This configuration file is the completion of the MIME configuration, when we appear in the new MIME format, we can use this configuration file to configure the MIME.

[2]nginx.conf: This is the nginx core configuration file, we will often use this configuration file later.

[3]nginx.conf.default: This is the default configuration of Nginx, in the main configuration file, the configuration file will be automatically loaded.

Three. Basic Configuration Instructions

In Nginx, our use is basically in the configuration file, if we use these configuration files, we need to understand the basic way of configuration.

In Nginx, it is carried out according to the module. Therefore, we need to configure the configuration file in the same way as the module.

In addition, in Nginx, there is a concept of configuration variables, we can use these configuration variables to complete a more powerful configuration.

Therefore, a large number of configurations are accompanied by our use of nginx, so we need to follow the instructions given in the official documentation to learn.

The process structure and basic configuration of 002 Nginx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.