nginx的配置文件中有相关配置 http部分可以配置upstream upstream phpserver { server 127.0.0.1:9000 weight=10; server x.x.x.x.:xx weight=10; server x.x.x.x.:xx weight=10; server x.x.x.x.:xx weight=10; } 只需要配置服务器ip和服务端口即可
nginx的配置文件中有相关配置
http部分可以配置upstream
upstream phpserver {
server 127.0.0.1:9000 weight=10;
server x.x.x.x.:xx weight=10;
server x.x.x.x.:xx weight=10;
server x.x.x.x.:xx weight=10;
}
只需要配置服务器ip和服务端口即可