Iis + nginx load balancing and iisnginx Load Balancing
Brief description: nginx introduction Baidu.
Objective: To distribute user requests to servers to relieve pressure.
Nginx works with IIS to achieve simple load balancing and nginxiis Load BalancingDeploy nginx in linux. This article mainly introduces how to implement load
#root: #静态文件存在地址, set here under/nginx-1.9.3/htmlBreak}This is the code for the index page
SummarizeBy Nginx We achieve a simple load balance, the actual situation is much more complex. For example, Nginx server hangs, then our site is hung directly, the correct through the keepalived components to build more than o
because the project encountered a lot of picture storage problems, although now we do not have a lot of pictures ( currently at 1T , the growth rate is expected to 1.3 times per year ) , thinking about how to effectively store lots of pictures, find some information, see, someone uses Nginx Set up a server, in the spirit of learning, oneself also personally to experience a bit Nginx in the window under the
: This article mainly introduces the load balancing of nginx and IIS. For more information about PHP tutorials, see. If you have been paying attention to nginx, you must know what the nginx software is for. If your website traffic
Because the project encountered a lot of picture storage problems, although now we do not have a lot of pictures (currently at 1T, estimated growth rate of 1.3 times times per year ), their own in thinking how to effectively store a large number of pictures, find some information, see, someone use Nginx set up the server, in the spirit of learning, oneself also personally to experience the installation process of
window run down Nginx , easy to implement load Balancing experiment environment: (2 servers)First set:System: Win2003nginx:nginx/windows-0.8.32ip:192.168.0.51Environment: LocalSecond set:System: Win2003ip:192.168.0.52Environment: RemoteDescriptionThis test, the software Nginx placed on the local (192.168.0.51), that is
port.Download Nginx's address as follows:Nginx Download: http://nginx.net/Version downloaded for this test: nginx/windows-0.8.22
Download Unzip to C:, change the directory name to Nginx
Well, below into practice:
First:
On the local (172.10.1.97) server, IIS creates a Web site that uses a port of 808, such as:
Second:
In remote 172.10.1.236
Nginx is a cross-platform high-performance HTTP and reverse proxy server developed by the Russians, which can be used to load balance the Web application server.Reverse proxy refers to the application server that forwards the user request through the proxy server to the back-end internal network, the typical application such as the configuration Nginx, lighttpd a
greater the probability of distribution. Server 127.0.0.1:8040 weight=1;} #当前的Nginx的配置 Server { listen 8090; #监听80端口, can be changed to another port server_name localhost;############## The domain name of the current service #charset koi8-r; #access_log logs/host.access.log main; #location/{ # root html; # Index index.html index.htm; #}location/{ proxy_pass htt
1. Create a new two site in IIS with 8001/8002 ports respectively.2, change the configuration in the nginx.conf.3, start Nginx.bat, input 1, enter.To achieve load balancing between 8001 and 80,022 port sites.4, note: If the 80 port is occupied, the Nginx will not start.Solution:Run Netstat-aon in cmd | FINDSTR:80, find
:
Nginx server acts as a front-end reverse proxy
Configure two backend IIS servers as the shunt Server
Load Method Based on IP-Hash
Test whether the configuration file has an error:/$ your directory/nginx/sbin/nginx-T
5. How to start
Download Nginx for Windows version
Download Address: http://nginx.org/en/download.html
Open cmd window
CD C:\nginx pointing to Nginx directory
Start Nginx start Nginx
Nginx-s Stop//Stop NginxNginx-s Reload//Reload configur
Bad mud: nginx load balancing, bad mud nginx Load Balancing
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
Today, we will learn about nginx Server
How does the Nginx load balancer do it? In fact, nginx load balancing has a lot of methods can be achieved, the following I will give you a concrete introduction of the Nginx load
In windows, ARR of IIS is used to achieve site load balancing and arr load balancing.1) Purpose:
Access localhost: 18066
Load the following two ports
Localhost: 18098
Localhost: 18099
2) means:
1. Use
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.