NGINX Installation and Configuration in Windows

  • Last update:September 19, 2025
  • Overview

    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.

    iconNote:
    If the concurrence requirement is below 300 and the cluster deployment is solely for hot standby purposes, you can use NGINX as the load balancer. If the concurrence requirement exceeds 300, you are advised to use another load balancer instead.

    For details, see https://nginx.org/en/docs/windows.html.

    Installation Procedure

    Downloading the NGINX Installation Package

    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.

    Installing NGINX

    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.

    1.png

    NGINX Startup

    Running the Command

    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.png

    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.

    3.png

    Configuration Modifying

    To use NGINX as a load balancer for a Web container, you must configure NGINX properly.

    附件列表


    主题: Deployment and Integration
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy