Home  >  Q&A  >  body text

php - nginx 如何配置反向代理调度多台服务器??

nginx 如何配置反向代理调度多台服务器??

使用虚拟机开了2台服务器,主系统电脑一个,如何配置反向代理??负载均衡调度这三台服务器??希望大神详细介绍下...,谢谢。

PHP中文网PHP中文网2748 days ago879

reply all(5)I'll reply

  • cloudmam

    cloudmam2020-06-22 18:04:49

    You can use the server management tool Cloud Helper to manage multiple servers in batches and clusters

    reply
    0
  • 哪儿

    哪儿2020-02-27 14:54:41

    Recommend an artifact that should be able to help you. Cloud Helper is a powerful and comprehensive centralized management cloud host software. Not only is it compatible with Linux systems, Windows can also be used. In fact, the use of functions is quite good, because the functions are comprehensive and the installation is simple. Basically, it can be done with one click by a fool. If you add a cloud host in the middle, you need to add a probe for the first time, and then you can basically operate it on the panel. This is quite convenient. I have tried basically all the mainstream clouds and there are no problems, and there are no problems with the system. This is quite worry-free. I won’t say that there are any cloud providers or systems that cannot be used, and I have to find another software. The general functions are as follows: 1. Batch management of multiple cloud hosts; 2. Strong compatibility, compatible with basically all cloud business cloud hosts on the market, and compatible with operating systems; 3. Simple operation, visual interface preview resources, one-click repair, one-click deployment ; 4. You can remotely log in to the FTP desktop of the cloud host and process files on the cloud host; 5. Monitoring and resources also have an alarm function, which is very good, and you don’t have to stare at it; 6. System repair function, this is very practical It is also quite necessary; 7. Free to use. Generally speaking, the functions are quite complete, and there is no need to find another software. A cloud helper software basically meets all needs.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-11 10:28:26

    upstream sers {
            server server1_ip:port weight=2 max_fails=2 fail_timeout=6s;
            server server2_ip:port weight=1 max_fails=2 fail_timeout=6s;
            ip_hash;
        }
    location / {
                    proxy_set_header Host $http_host;
                    proxy_pass          http://sers
    }

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-11 10:28:26

    server可以设置的

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-11 10:28:26

    可以找下nginx的负载均衡配置。
    http://blog.csdn.net/e4210834...
    里面有个还不错的demo实例。

    reply
    0
  • Cancelreply