【Nginx】Introduction and installation of Nginx

1. Introduction to Nginx

1. The trend of Nginx:

2. Introduction to Nginx

Nginx (engine x) is a high-performance HTTP (solve c10k problem) and reverse proxy server, and also an IMAP/POP3/SMTP server

3. Advantages of Nginx

①IO multiplexing: mainly to solve high concurrency problems Technical points used: epoll, asynchronous non-blocking

What is multiplexing:

Proportionally, Xiaoming asked me how to build an environment for nginx, Xiaohong asked me who is the most beautiful in the world, and then Xiaohua asked me what knowledge points nginx has, because Xiaoming asked me first, so I will deal with Xiaoming first, when I Baidu , because Baidu needs time, I waited first, and then told Xiaohong that you are the most beautiful, and then when Baidu’s stuff came out, I told Xiaoming, and then went to solve Xiaohua’s problem, a situation like this is called multi-channel Reuse means that when you have a process stuck, you will process other processes first, and after the process is processed, go back to process the slow process.

2. ESC and domain name resolution

3. Installation of Nginx

1. nginx official website link: nginx

2. nginx version type:

Mainline version: mainline version, and development board

Stable version: the latest stable version, the recommended version for production environment

Legacy versions: the stable version in the legacy old version

3. Configure yum source (you need to come down and study by yourself)

Personal understanding: You create a yun source file, then configure the metadata, and then you need to clear the yum source. The principle of this step is to update the yun source. When downloading the software, use the yum source carefully. There is a doubt. Does that mean that if I install one, I have to configure a yum source, and do it every time to clear it? So what is the source of epel? follow up research?

Click on the documentation-"Installing nginx on the right

Environmental issues:

Install:

安装
yum -y install nginx
启动
systemctl start nginx 
开机启动
systemctl enabled nginx
查看是否安装成功及版本的显示
nginx -V

Guess you like

Origin blog.csdn.net/qq_42200107/article/details/125793775