[TOC]nginx 4层转发及负载均衡$ vim /etc/nginx/nginx.conf stream { upstream webserver { server 192.168.1.227:80; server 192.168.1.228:80; } server { listen 80; proxy_pass webserver; } }