Escolar Documentos
Profissional Documentos
Cultura Documentos
2015-09-13
zhangmengzhi2005@126.com
Apache Nginx
http://www.cnblogs.com/liping13599168/archive/2011/04/15/2017369.html
Nginx
1 Tomcat
JDK JAVA_HOMEPATH
Tomcat server.xml 8080 18080
webapps/ROOT/index.jsp Tomcat
2 Nginx
Nginxhttp://nginx.org/en/download.html
nginx.conf
server
upstream site {
server localhost:8080;
server localhost:18080;
}
server {
listen
80;
server_name localhost;
#charset koi8-r;
location / {
root html;
index index.html index.htm index.jsp;
proxy_pass http://site;
}
3 Nginx/Tomcat
Windows Nginxstart nginx nginxnginx -s stop
nginx.exe
4 localhost
1:1
upstream site {
server localhost:8080 weight=2;
server localhost:18080 weight=1;
}
weight
Nginx JPGGIFCSSJS
Web
Web
http://www.cnblogs.com/daizhj/archive/2009/11/03/1595292.html