Testing tools nginx-1.8.1 tomcat7 redis
aims:
High-performance load balancing tomcat cluster
Implementation steps:
1. First download Nginx, to download the stable version:
2, then extract two Tomcat, named tomcat7-1 and tomcat7-2 :
3, and then modify these two Tomcat startup ports 180 and 280, respectively, following the first Tomcat to modify, for example, open the conf server.xml Tomcat directory: tomcat introduced redis
The second tomcat similar modifications port and can
4, and then start two Tomcat, and access to, to see if normal:
5 , the OK, now we can begin to configure Nginx to achieve load balancing, in fact, very simple, only you need to configure Nginx configuration file to
6, first of all, we start Nginx:
If you flash back to perform the second step to see if there are any open session to on success
Multi-server configuration by redis session cache is shared
Loading………………