NGINX is a load balancer that has excellent concurrence performance in Linux with low resource utilization.
However, it does not support high concurrences in Windows. In view of this, you need to consider the concurrence requirement when selecting NGINX as the load balancer in Windows.
For details, see https://nginx.org/en/docs/windows.html.
You can download the NGINX installation package at the official website http://nginx.org/.
NGINX of 1.21 and later versions are recommended. The latest version is always preferred.
Place the downloaded installation package to a directory and unpack it. For example, place the installation package to Data (D:) and unpack it for use, as shown in the following figure.
Press Windows + R, enter cmd, click OK, and run the following commands based on the NGINX application deployed in this document.
1. You can use the commands to enter the NGINX directory, as shown in the following figure.
2. You can use the following commands to start or stop NGINX.
start nginx #Start NGINX.nginx -s reload #Restart NGINX.nginx -s stop #Stop NGINX quickly.nginx -s quit #Stop NGINX gracefully.
Testing Whether NGINX Is Successfully Installed
Enter http://IP address:Port number of NGINX in the address bar of a browser. For example, enter http://192.168.61.253:80. If the page displays the content shown in the following figure, NGINX is successfully installed.
To use NGINX as a load balancer for a Web container, you must configure NGINX properly.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy