In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Nginx concept introduction and installation method", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Nginx concept introduction and installation method" bar!
First, brief introduction 1. Overview
Nginx is a high-performance HTTP and reverse proxy server, the ability to deal with high concurrency is very strong, can withstand the test of high load, it has been reported that it can support up to 50000 concurrent connections.
two。 Noun interpretation
1. Forward agent
You need to configure the proxy server on the client first, and then access the specified website through the proxy server.
Image
two。 Reverse proxy
Only the proxy server address is exposed, hiding the real server IP address, and the client is unaware of this.
Image load balancing
Increase the number of servers, then distribute the request to each server, instead of concentrating the request on a single server, distribute the request to multiple servers and distribute the load to different servers.
Image static and dynamic separation
In order to speed up the parsing speed of the website, dynamic pages and static pages can be parsed by different servers to speed up the parsing speed. Reduce the pressure on the original single server.
Image II. Installation query nginx > docker search nginx
Select the version you need to download > docker pull nginx:tag
Initial operation of nginx > docker run-d-P-- name nginx1 nginx
Copy nginx.conf from container to host # and enter into nginx container to find the address of nginx.conf configuration file
> docker exec-it nginx1 / bin/bash
# copy the nginx.conf file in the container to the host
> docker cp nginx1:/etc/nginx/nginx.conf / etc/nginx/nginx.conf
Delete the container you just started > docker rm-f $(docker ps-lq)
Restart nginx and mount the data volume # if you do not do step 4, nginx will not start because nginx.conf is empty
> docker run-d-- name nginx-p 80:80-v / etc/nginx/nginx.conf:/etc/nginx/nginx.conf nginx
View nginx version information # View nginx version information
> docker exec-it nginx1 / bin/bash
> cd / usr/local/sbin
>. / nginx-v
Thank you for your reading, the above is the content of "Nginx concept introduction and installation method". After the study of this article, I believe you have a deeper understanding of the concept introduction and installation method of Nginx, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.