Nginx 负载均衡操作设置

 MeLiu   2019-02-22 16:37   2022 人阅读  0 条评论
#载均衡
	upstream bbs.php.com{
	        #设置同IP下分发到一同服务器
	        id_hash;
	        #设置从服务器
		server 192.168.37.2;
		server 192.168.37.3;
	}
	server {
		listen 80;
		server_name bbs.php.com;
		
		#
		location / {
			proxy_pass http://bbs.php.com;
		}
	}





本文地址:http://www.mobaishare.com/post/11.html
版权声明:本文为原创文章,版权归 MeLiu 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?