nginx知识点

https://www.jianshu.com/p/5eab0f83e3b4

http://blog.csdn.net/daybreak1209/article/details/51554045

 

首先会启动一个master进程  再会启动N个worker进程   一个worker进程 对应一个线程 避免了线程上下文切换

 

  1. upstream tomcatserver1 {  
  2.     server 192.168.72.49:8080 weight=3;  
  3.     server 192.168.72.49:8081;  
  4.     }   
  5.   
  6.  server {  
  7.         listen       80;  
  8.         server_name  8080.max.com;  
  9.         #charset koi8-r;  
  10.         #access_log  logs/host.access.log  main;  
  11.         location / {  
  12.             proxy_pass   http://tomcatserver1;  
  13.             index  index.html index.htm;  
  14.         }  
  15.      }   

posted on 2018-03-16 00:03  woymy  阅读(84)  评论(0)    收藏  举报

导航