反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Installing and configuring Nginx on Windows systems

  • Recent Updates: October 21, 2022
  • 1. Overview

    Nginx as a load balancer has good concurrency performance on Linux systems and uses very little memory. However, it does not support high concurrency on Windows systems, so you need to consider concurrency when choosing Nginx as a load balancer on Windows systems.

    If the concurrency requirement is less than 300 and the cluster is deployed for hot standby purposes only, you can use Nginx as a load balancer. If the concurrency requirement is more than 300, Nginx is not recommended and you must switch to another load balancer.

    See the official Nginx instructions for more information:  http://nginx.org/en/docs/windows.html

    Note: This article provides a cluster solution that only supports purely directly connected JARs.

    2. Installation steps

    2.1 Download Nginx

    Recommended Download Version:nginx-1.16.0.zip

    If you need another version, you can go to the official page to download:http://nginx.org/

    2.2 Installing Nginx

    If you have downloaded the Nginx package, you can unzip it in a directory that you can easily manage, such as the D drive, and use it afterwards. As shown in the following image:

    2.3 Starting Nginx

    2.3.1 Operation and maintenance commands

    Windows+R Type cmd to compile the following. For Nginx applications deployed according to this document, use the following Ops command.

    1) Go to the Nginx directory, as shown in the following figure.

    1558948026225407.png

    2)Start and shut down Nginx. As shown below.

    start nginx       #Start nginx
    nginx -s reload     #Restart nginx
    nginx -s stop     #Quick Stop nginx
    nginx -s quit     #Complete and orderly stop nginx

    2.3.2 Test for successful installation

    Type http://ip:nginx port number in the address bar of your browser, for example: http://192.168.61.253:80, and Nginx will appear on the page as a successful installation. As shown in the following figure.

    1627543940844642.png

    3. Modify configuration

    To use Nginx with web containers for load balancing, you must also configure Nginx, both generic and custom configurations are provided below.

    See Chapter 3 and Chapter 4 of the Nginx Installation and Configuration for Linux documentation for more information on Nginx configuration.


    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭