Nginx can be used as a seven-layer negative load equalization server to realize the dispatch of real server in backend, mainly using upstream instruction to reverse proxy.
Topology diagram of Nginx load Balancer implementation
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/B9/wKiom1WDy1KjVSDnAAFm2jotsE4021.jpg "title=" Nginx.jpg "alt=" Wkiom1wdy1kjvsdnaafm2jotse4021.jpg "/>
3. Install the configuration server
2 Apache Install and start service
2 apahce+php Install and start the service
Nginx Installation configuration file
The reverse proxy poll of the Nginx version 0.8.55,1.0.9 can not be started normally, then I used 1.6.0 version, boot no error
Then configure the nginx.conf file
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/BA/wKiom1WDzm3i8LGNAAGcVaiN_Uw912.jpg "title=" nginx1 . PNG "alt=" Wkiom1wdzm3i8lgnaagcvain_uw912.jpg "/>
4. Perform test validation
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/B6/wKioL1WD0JeBWsxaAAFLHoybsf4825.jpg "title=" nginx2 . PNG "alt=" Wkiol1wd0jebwsxaaaflhoybsf4825.jpg "/>
Test success
Nginx reverse proxy for 4 server load Balancing