锘??xml version="1.0" encoding="utf-8" standalone="yes"?>激情无码亚洲一区二区三区,亚洲美女aⅴ久久久91,亚洲精品国产成人99久久http://www.tkk7.com/stevenjohn/category/53185.html閭d簺闈掓槬鐨勫瞾鏈?/description>zh-cnFri, 04 Sep 2015 21:59:10 GMTFri, 04 Sep 2015 21:59:10 GMT60nginx 铏氭嫙涓繪満璁劇疆http://www.tkk7.com/stevenjohn/archive/2015/08/29/427033.htmlabinabinSat, 29 Aug 2015 07:15:00 GMThttp://www.tkk7.com/stevenjohn/archive/2015/08/29/427033.htmlhttp://www.tkk7.com/stevenjohn/comments/427033.htmlhttp://www.tkk7.com/stevenjohn/archive/2015/08/29/427033.html#Feedback0http://www.tkk7.com/stevenjohn/comments/commentRss/427033.htmlhttp://www.tkk7.com/stevenjohn/services/trackbacks/427033.html
nginx閰嶇疆鏂囦歡鐩綍錛欴:\Sys\server\nginx\nginx-1.9.4\conf
nginx.conf 閰嶇疆鏂囦歡濡備笅錛?br />
#user  nobody;
worker_processes  1;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log  logs/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
    include vhosts/*.conf;
}

榪欎釜涓葷洰褰曞彧淇濈暀鍩烘湰閰嶇疆
 include vhosts/*.conf;榪欏彞璇濆氨鏄紩鐢ㄨ櫄鎷熶富鏈虹洰褰曠殑閰嶇疆鏂囦歡

鍦ㄨ鐩綍涓嬮潰鍒涘緩vhosts鐩綍錛?br />
D:\Sys\server\nginx\nginx-1.9.4\conf\vhosts
铏氭嫙涓繪満(瀹為檯閲岄潰灝辨槸閰嶇疆upstream鍜宻erver錛岀劧鍚巗erver閲岄潰閰嶇疆鐩戝惉绔彛鍜宻erverName錛岃繕鏈塴ocation)鐩綍閲岄潰鐨勯厤緗枃浠跺垎鍒負(fù)錛?br />www.abin.com.conf
www.lee.com.conf

www.abin.com.conf鐨勯厤緗負(fù)錛?br />
upstream abin {
server localhost:9200 weight=10;
}
# another virtual host using mix of IP-, name-, and port-based configuration
server {
listen       8000;
server_name  www.abin.com abin.com;
location / {
   #鍙嶅悜浠g悊鐨勫湴鍧
            proxy_pass http://abin;
   root   html;
   index  index.html index.htm;
}
location /abin {
   #鍙嶅悜浠g悊鐨勫湴鍧
            proxy_pass http://abin;
   root   html;
   index  index.html index.htm;
}
}
www.lee.com.conf鐨勯厤緗負(fù)錛?/div>
upstream lee {
server localhost:9300 weight=10;//榪欎釜閰嶇疆涓簍omcat鐨勮姹傚湴鍧
}
# another virtual host using mix of IP-, name-, and port-based configuration
server {
listen       8000;
server_name  www.lee.com lee.com;
location / {
   #鍙嶅悜浠g悊鐨勫湴鍧
            proxy_pass http://lee;
   root   html;
   index  index.html index.htm;
}
location /abin {
   #鍙嶅悜浠g悊鐨勫湴鍧
            proxy_pass http://lee;
   root   html;
   index  index.html index.htm;
}
}



嫻嬭瘯錛?br />
http://www.lee.com:8000/
http://www.lee.com:8000/abin
http://lee.com:8000/abin
http://www.lee.com:8000/
http://www.lee.com:8000/lee
http://lee.com:8000/lee

鎴戠殑tomcat鏈嶅姟鍣ㄧ殑web.xml閮介厤緗簡(jiǎn)<webcome-list>index.html</welcome-list>,
tomcat:9200閰嶇疆浜?jiǎn)abin榪欎釜java宸ョ▼錛屽畠閲岄潰鐨刬ndex.html鍐呭涓篽ello錛宎bin
tomcat:9300閰嶇疆浜?jiǎn)abin榪欎釜java宸ョ▼錛屽畠閲岄潰鐨刬ndex.html鍐呭涓篽ello錛宭ee

閭d箞涓婇潰鐨勭浜屼釜鍦板潃鎵撳嵃hello錛宎bin
閭d箞涓婇潰鐨勭鍥涗釜鍦板潃鎵撳嵃hello錛宭ee


鏈湴hosts鏂囦歡閰嶇疆涓猴細(xì)
127.0.0.1       localhost 
127.0.0.1       www.abin.com     abin.com 
127.0.0.1       www.lee.com       lee.com 


abin 2015-08-29 15:15 鍙戣〃璇勮
]]>nginx.conf鐨勫畬鏁撮厤緗鏄?/title><link>http://www.tkk7.com/stevenjohn/archive/2013/01/03/393710.html</link><dc:creator>abin</dc:creator><author>abin</author><pubDate>Thu, 03 Jan 2013 06:52:00 GMT</pubDate><guid>http://www.tkk7.com/stevenjohn/archive/2013/01/03/393710.html</guid><wfw:comment>http://www.tkk7.com/stevenjohn/comments/393710.html</wfw:comment><comments>http://www.tkk7.com/stevenjohn/archive/2013/01/03/393710.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/stevenjohn/comments/commentRss/393710.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/stevenjohn/services/trackbacks/393710.html</trackback:ping><description><![CDATA[<p>Nginx閰嶇疆鏂囦歡璇︾粏璇存槑<br />鍦ㄦ璁板綍涓婲ginx鏈嶅姟鍣╪ginx.conf鐨勯厤緗枃浠惰鏄? 閮ㄥ垎娉ㄩ噴鏀墮泦涓庣綉緇?<br />#榪愯鐢ㄦ埛<br />user www-data;    <br />#鍚姩榪涚▼,閫氬父璁劇疆鎴愬拰cpu鐨勬暟閲忕浉絳?br />worker_processes  1;<br />#鍏ㄥ眬閿欒鏃ュ織鍙?qiáng)PID鏂囦歡<br />error_log  /var/log/nginx/error.log;<br />pid        /var/run/nginx.pid;<br />#宸ヤ綔妯″紡鍙?qiáng)杩炴帴鏁颁笂闄?br />events {<br />    use   epoll;             #epoll鏄璺鐢↖O(I/O Multiplexing)涓殑涓縐嶆柟寮?浣嗘槸浠呯敤浜巐inux2.6浠ヤ笂鍐呮牳,鍙互澶уぇ鎻愰珮nginx鐨勬ц兘<br />    worker_connections  1024;#鍗曚釜鍚庡彴worker process榪涚▼鐨勬渶澶у茍鍙戦摼鎺ユ暟<br />    # multi_accept on; <br />}<br />#璁懼畾http鏈嶅姟鍣紝鍒╃敤瀹冪殑鍙嶅悜浠g悊鍔熻兘鎻愪緵璐熻澆鍧囪 鏀寔<br />http {<br />     #璁懼畾mime綾誨瀷,綾誨瀷鐢眒ime.type鏂囦歡瀹氫箟<br />    include       /etc/nginx/mime.types;<br />    default_type  application/octet-stream;<br />    #璁懼畾鏃ュ織鏍煎紡<br />    access_log    /var/log/nginx/access.log;<br />    #sendfile 鎸囦護(hù)鎸囧畾 nginx 鏄惁璋冪敤 sendfile 鍑芥暟錛坺ero copy 鏂瑰紡錛夋潵杈撳嚭鏂囦歡錛屽浜庢櫘閫氬簲鐢紝<br />    #蹇呴』璁句負(fù) on,濡傛灉鐢ㄦ潵榪涜涓嬭澆絳夊簲鐢ㄧ鐩業(yè)O閲嶈礋杞藉簲鐢紝鍙緗負(fù) off錛屼互騫寵 紓佺洏涓庣綉緇淚/O澶勭悊閫熷害錛岄檷浣庣郴緇熺殑uptime.<br />    sendfile        on;<br />    #tcp_nopush     on;<br />   <br />    #榪炴帴瓚呮椂鏃墮棿<br />    #keepalive_timeout  0;<br />    keepalive_timeout  65;<br />    tcp_nodelay        on;<br />    <br />    #寮鍚痝zip鍘嬬緝<br />    gzip  on;<br />    gzip_disable "MSIE [1-6]\.(?!.*SV1)";<br />    #璁懼畾璇鋒眰緙撳啿<br />    client_header_buffer_size    1k;<br />    large_client_header_buffers  4 4k;<br />    include /etc/nginx/conf.d/*.conf;<br />    include /etc/nginx/sites-enabled/*;<br />   <br />   #璁懼畾璐熻澆鍧囪 鐨勬湇鍔″櫒鍒楄〃<br />     upstream mysvr {<br />    #weigth鍙傛暟琛ㄧず鏉冨鹼紝鏉冨艱秺楂樿鍒嗛厤鍒扮殑鍑犵巼瓚婂ぇ<br />    #鏈満涓婄殑Squid寮鍚?128绔彛<br />    server 192.168.8.1:3128 weight=5;<br />    server 192.168.8.2:80  weight=1;<br />    server 192.168.8.3:80  weight=6;<br />    }</p> <p>   server {<br />    #渚﹀惉80绔彛<br />        listen       80;<br />        #瀹氫箟浣跨敤<a >www.xx.com</a>璁塊棶<br />        server_name  <a >www.xx.com</a>;<br />        #璁懼畾鏈櫄鎷熶富鏈虹殑璁塊棶鏃ュ織<br />        access_log  logs/www.xx.com.access.log  main;<br />    #榛樿璇鋒眰<br />    location / {<br />          root   /root;      #瀹氫箟鏈嶅姟鍣ㄧ殑榛樿緗戠珯鏍圭洰褰曚綅緗?br />          index index.php index.html index.htm;   #瀹氫箟棣栭〉绱㈠紩鏂囦歡鐨勫悕縐?br />          fastcgi_pass  <a >www.xx.com</a>;<br />         fastcgi_param  SCRIPT_FILENAME  $document_root/$fastcgi_script_name; <br />          include /etc/nginx/fastcgi_params;<br />        }<br />    # 瀹氫箟閿欒鎻愮ず欏甸潰<br />    error_page   500 502 503 504 /50x.html;  <br />        location = /50x.html {<br />        root   /root;<br />    }<br />    #闈?rùn)鎬佹枃浠訛紝nginx鑷繁澶勭悊<br />    location ~ ^/(images|javascript|js|css|flash|media|static)/ {<br />        root /var/www/virtual/htdocs;<br />        #榪囨湡30澶╋紝闈?rùn)鎬佹枃浠朵笉鎬庝箞鏇存柊錛岃繃鏈熷彲浠ヨ澶т竴鐐癸紝濡傛灉棰戠箒鏇存柊錛屽垯鍙互璁劇疆寰楀皬涓鐐廣?br />        expires 30d;<br />    }<br />    #PHP 鑴氭湰璇鋒眰鍏ㄩ儴杞彂鍒?FastCGI澶勭悊. 浣跨敤FastCGI榛樿閰嶇疆.<br />    location ~ \.php$ {<br />        root /root;<br />        fastcgi_pass 127.0.0.1:9000;<br />        fastcgi_index index.php;<br />        fastcgi_param SCRIPT_FILENAME /home/www/www$fastcgi_script_name;<br />        include fastcgi_params;<br />    }<br />    #璁懼畾鏌ョ湅Nginx鐘舵佺殑鍦板潃<br />    location /NginxStatus {<br />        stub_status            on;<br />        access_log              on;<br />        auth_basic              "NginxStatus";<br />        auth_basic_user_file  conf/htpasswd;<br />    }<br />    #紱佹璁塊棶 .htxxx 鏂囦歡<br />    location ~ /\.ht {<br />        deny all;<br />    }<br />     <br />     }<br />}</p> <p><br />#浠ヤ笂鏄竴浜涘熀鏈殑閰嶇疆,浣跨敤Nginx鏈澶х殑濂藉灝辨槸璐熻澆鍧囪 <br />#濡傛灉瑕佷嬌鐢ㄨ礋杞藉潎琛$殑璇?鍙互淇敼閰嶇疆http鑺傜偣濡備笅錛?br />#璁懼畾http鏈嶅姟鍣紝鍒╃敤瀹冪殑鍙嶅悜浠g悊鍔熻兘鎻愪緵璐熻澆鍧囪 鏀寔<br />http {<br />     #璁懼畾mime綾誨瀷,綾誨瀷鐢眒ime.type鏂囦歡瀹氫箟<br />    include       /etc/nginx/mime.types;<br />    default_type  application/octet-stream;<br />    #璁懼畾鏃ュ織鏍煎紡<br />    access_log    /var/log/nginx/access.log;<br />    #鐪佺暐涓婃枃鏈夌殑涓浜涢厤緗妭鐐?br />    #銆傘傘傘傘傘傘傘傘傘?br />    #璁懼畾璐熻澆鍧囪 鐨勬湇鍔″櫒鍒楄〃<br />     upstream mysvr {<br />    #weigth鍙傛暟琛ㄧず鏉冨鹼紝鏉冨艱秺楂樿鍒嗛厤鍒扮殑鍑犵巼瓚婂ぇ<br />    server 192.168.8.1x:3128 weight=5;#鏈満涓婄殑Squid寮鍚?128绔彛<br />    server 192.168.8.2x:80  weight=1;<br />    server 192.168.8.3x:80  weight=6;<br />    }<br />   upstream mysvr2 {<br />    #weigth鍙傛暟琛ㄧず鏉冨鹼紝鏉冨艱秺楂樿鍒嗛厤鍒扮殑鍑犵巼瓚婂ぇ<br />    server 192.168.8.x:80  weight=1;<br />    server 192.168.8.x:80  weight=6;<br />    }<br />   #絎竴涓櫄鎷熸湇鍔″櫒<br />   server {<br />    #渚﹀惉192.168.8.x鐨?0绔彛<br />        listen       80;<br />        server_name  192.168.8.x;<br />      #瀵筧spx鍚庣紑鐨勮繘琛岃礋杞藉潎琛¤姹?br />    location ~ .*\.aspx$ {<br />         root   /root;      #瀹氫箟鏈嶅姟鍣ㄧ殑榛樿緗戠珯鏍圭洰褰曚綅緗?br />          index index.php index.html index.htm;   #瀹氫箟棣栭〉绱㈠紩鏂囦歡鐨勫悕縐?br />          proxy_pass  <a href="http://mysvr">http://mysvr</a> ;#璇鋒眰杞悜mysvr 瀹氫箟鐨勬湇鍔″櫒鍒楄〃<br />          #浠ヤ笅鏄竴浜涘弽鍚戜唬鐞嗙殑閰嶇疆鍙垹闄?<br />          proxy_redirect off;<br />         <br />   #鍚庣鐨刉eb鏈嶅姟鍣ㄥ彲浠ラ氳繃X-Forwarded-For鑾峰彇鐢ㄦ埛鐪熷疄IP<br />          proxy_set_header Host $host;<br />          proxy_set_header X-Real-IP $remote_addr;<br />          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br />          client_max_body_size 10m;    #鍏佽瀹㈡埛绔姹傜殑鏈澶у崟鏂囦歡瀛楄妭鏁?br />          client_body_buffer_size 128k;  #緙撳啿鍖轟唬鐞嗙紦鍐茬敤鎴風(fēng)璇鋒眰鐨勬渶澶у瓧鑺傛暟錛?br />          proxy_connect_timeout 90;  #nginx璺熷悗绔湇鍔″櫒榪炴帴瓚呮椂鏃墮棿(浠g悊榪炴帴瓚呮椂)<br />          proxy_send_timeout 90;        #鍚庣鏈嶅姟鍣ㄦ暟鎹洖浼犳椂闂?浠g悊鍙戦佽秴鏃?<br />          proxy_read_timeout 90;         #榪炴帴鎴愬姛鍚庯紝鍚庣鏈嶅姟鍣ㄥ搷搴旀椂闂?浠g悊鎺ユ敹瓚呮椂)<br />          proxy_buffer_size 4k;             #璁劇疆浠g悊鏈嶅姟鍣紙nginx錛変繚瀛樼敤鎴峰ご淇℃伅鐨勭紦鍐插尯澶у皬<br />          proxy_buffers 4 32k;               #proxy_buffers緙撳啿鍖猴紝緗戦〉騫沖潎鍦?2k浠ヤ笅鐨勮瘽錛岃繖鏍瘋緗?br />          proxy_busy_buffers_size 64k;    #楂樿礋鑽蜂笅緙撳啿澶у皬錛坧roxy_buffers*2錛?br />          proxy_temp_file_write_size 64k;  #璁懼畾緙撳瓨鏂囦歡澶瑰ぇ灝忥紝澶т簬榪欎釜鍊鹼紝灝嗕粠upstream鏈嶅姟鍣ㄤ紶<br />       }<br />     }<br />}<br /></p><img src ="http://www.tkk7.com/stevenjohn/aggbug/393710.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/stevenjohn/" target="_blank">abin</a> 2013-01-03 14:52 <a href="http://www.tkk7.com/stevenjohn/archive/2013/01/03/393710.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Nginx+tomcat閰嶇疆闆嗙兢http://www.tkk7.com/stevenjohn/archive/2013/01/03/393709.htmlabinabinThu, 03 Jan 2013 06:51:00 GMThttp://www.tkk7.com/stevenjohn/archive/2013/01/03/393709.htmlhttp://www.tkk7.com/stevenjohn/comments/393709.htmlhttp://www.tkk7.com/stevenjohn/archive/2013/01/03/393709.html#Feedback0http://www.tkk7.com/stevenjohn/comments/commentRss/393709.htmlhttp://www.tkk7.com/stevenjohn/services/trackbacks/393709.html 寮鍙戠殑搴旂敤閲囩敤F5璐熻澆鍧囪 浜ゆ崲鏈猴紝F5灝嗚姹傝漿鍙戠粰5鍙癶p unix鏈嶅姟鍣紝姣忓彴鏈嶅姟鍣ㄦ湁澶氫釜webserver瀹炰緥錛屽澶栨彁渚泈eb鏈嶅姟鍜宻ocket絳夋帴鍙f湇鍔°備箣鍒濓紝鏇炬湁涓皬灝忕殑鐤戦棶涓轟綍涓嶉噰鐢ㄥ紑婧愮殑apache銆丯ginx杞歡璐熻澆錛孎5璁懼鍔ㄨ緞鍑犲崄涓囷紝浠鋒牸鏄傝吹錛熻嚜宸變竴涓瘮杈冨辜紼氱殑闂錛屽悗緇槑鐧斤細(xì)F5鏄搷浣滀簬IOS緗戠粶妯″瀷鐨勪紶杈撳眰錛孨ginx銆乤pache鏄熀浜巋ttp鍙嶅悜浠g悊鏂瑰紡錛屼綅浜嶪SO妯″瀷鐨勭涓冨眰搴旂敤灞傘傜洿鐧戒簺灝辨槸TCP UDP 鍜宧ttp鍗忚鐨勫尯鍒紝Nginx涓嶈兘涓哄熀浜嶵CP鍗忚鐨勫簲鐢ㄦ彁渚涜礋杞藉潎琛°?/p>


      浜?jiǎn)瑙d簡(jiǎn)浜岃呬箣闂寸殑鍖哄埆浜庡簲鐢ㄥ満鏅紝瀵筃ginx浜х敓嫻撳帤鐨勫叴瓚o紝闃呰寮犲鐨?lt;瀹炴垬Nginx>錛堣繖涓?5騫寸殑灝忎紮瀛愬勾杞繪湁涓虹盡鎱?濡掑繉錛夛紝鎼炴槑鐧戒簡(jiǎn)澶ц嚧鍘熺悊鍜岄厤緗紝Ubuntu10.10錛寃indow涓嬪Nginx+tomcat璐熻澆鍧囪 鍋氫簡(jiǎn)閰嶇疆灝濊瘯錛屽皢鍏ㄩ儴璇鋒眰杞彂鍒皌omcat錛屽茍鏈仛闈?rùn)鎬侊紝鍔ㄦ佸垎寮錛屽浘鐗囬槻鐩楅摼絳夐厤緗?br />Nginx 浠嬬粛


     Nginx 錛堝彂闊沖悓 engine x錛夋槸涓嬈捐交閲忕駭鐨刉eb 鏈嶅姟鍣紡鍙嶅悜浠g悊鏈嶅姟鍣ㄥ強(qiáng)鐢?shù)瀛愰偖錃g錛圛MAP/POP3錛変唬鐞嗘湇鍔″櫒錛屽茍鍦ㄤ竴涓狟SD-like 鍗忚涓嬪彂琛屻?nbsp; 鍏剁壒鐐規(guī)槸鍗犳湁鍐呭瓨灝戯紝騫跺彂鑳藉姏寮猴紝浜嬪疄涓妌ginx鐨勫茍鍙戣兘鍔涚‘瀹炲湪鍚岀被鍨嬬殑緗戦〉浼烘湇鍣ㄤ腑琛ㄧ幇杈冨ソ.鐩墠涓浗澶ч檰浣跨敤nginx緗戠珯鐢ㄦ埛鏈夛細(xì)鏂版氮銆佺綉鏄撱?鑵捐,鍙﹀鐭ュ悕鐨勫井緗戝織Plurk涔熶嬌鐢╪ginx銆?/p>


    涓婇潰鐨勫叏鏄疦ginx浠嬬粛鍩烘湰涓婃槸搴熻瘽錛屼笅闈㈣漿鍏ユ棰橈紝鍥炬枃緇撳悎灞曠ず鍩烘湰閰嶇疆錛岄鍏堟槸window鐜銆佸叾嬈℃槸Ubuntu鐜錛圴box铏氭嫙錛夈傛湰鏂囦富瑕佸熀浜嶯ginx涓嬮厤緗袱鍙皌omcat錛岀粨鏋勫涓嬪浘錛?br />
 

Window xp鐜錛歂ginx+Tomcat6

1銆佷笅杞藉湴鍧

       http://nginx.org/en/download.html 錛岃繖閲屾垜浠帹鑽愪笅杞界ǔ瀹氱増錛坰table versions錛夛紝鏈枃閲囩敤nginx-0.8.20銆?/p>


2銆佺洰褰曠粨鏋?/strong>


      Nginx-

               |_  conf   閰嶇疆鐩綍

               |_  contrib

               |_  docs 鏂囨。鐩綍

               |_  logs  鏃ュ織鐩綍

               |_  temp 涓存椂鏂囦歡鐩綍

               |_  html 闈?rùn)鎬侀〉闈㈢洰褰?/p>

               |_  nginx.exe 涓葷▼搴?/p>


      window涓嬪畨瑁匩ginx鏋佸叾綆鍗曪紝瑙e帇緙╁埌涓涓棤絀烘牸鐨勮嫳鏂囩洰褰曞嵆鍙紙涓漢涔?fàn)鎯Q屾媴蹇?jī)涓枃鍑洪棶棰樺Q夛紝鍙屽嚮nginx鍚姩錛岃繖閲屾垜瀹夎鍒幫細(xì)D:\server鐩綍錛屼笅闈㈡秹鍙?qiáng)鍒扮殑tomcat涔熷畨瑁呭湪姝ょ洰褰曘?/p>

   

DOS鐜鍚姩

 

鑻ユ灉鎯沖仠姝ginx錛宒os鐜榪愯鍛戒護(hù)錛歯ginx -s stop


3銆乶ginx.conf閰嶇疆


   Nginx閰嶇疆鏂囦歡榛樿鍦╟onf鐩綍錛屼富瑕侀厤緗枃浠朵負(fù)nginx.conf錛屾垜浠畨瑁呭湪D:\server\nginx-0.8.20銆侀粯璁や富閰嶇疆鏂囦歡涓篋:\server\nginx-0.8.20\nginx.conf銆備笅闈㈡槸nginx浣滀負(fù)鍓嶇鍙嶅悜浠g悊鏈嶅姟鍣ㄧ殑閰嶇疆銆?/p>

#Nginx鎵鐢ㄧ敤鎴峰拰緇勶紝window涓嬩笉鎸囧畾
#user  niumd niumd;
#宸ヤ綔鐨勫瓙榪涚▼鏁伴噺錛堥氬父絳変簬CPU鏁伴噺鎴栬?鍊嶄簬CPU錛?
worker_processes  2;
#閿欒鏃ュ織瀛樻斁璺緞
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
error_log  logs/error.log  info;
#鎸囧畾pid瀛樻斁鏂囦歡
pid        logs/nginx.pid;
events {
#浣跨敤緗戠粶IO妯″瀷linux寤鴻epoll錛孎reeBSD寤鴻閲囩敤kqueue錛寃indow涓嬩笉鎸囧畾銆?
#use epoll;
#鍏佽鏈澶ц繛鎺ユ暟
worker_connections  2048;
}
http {
include       mime.types;
default_type  application/octet-stream;
#瀹氫箟鏃ュ織鏍煎紡
#log_format  main  '$remote_addr - $remote_user [$time_local] $request '
#                  '"$status" $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';
#access_log  off;
access_log  logs/access.log;
client_header_timeout  3m;
client_body_timeout    3m;
send_timeout           3m;
client_header_buffer_size    1k;
large_client_header_buffers  4 4k;
sendfile        on;
tcp_nopush      on;
tcp_nodelay     on;
#keepalive_timeout  75 20;
include    gzip.conf;
upstream localhost {
#鏍規(guī)嵁ip璁$畻灝嗚姹傚垎閰嶅悇閭d釜鍚庣tomcat錛岃澶氫漢璇涓哄彲浠ヨВ鍐硈ession闂錛屽叾瀹炲茍涓嶈兘銆?
#鍚屼竴鏈哄櫒鍦ㄥ緗戞儏鍐典笅錛岃礬鐢卞垏鎹紝ip鍙兘涓嶅悓
#ip_hash;
server localhost:18081;
server localhost:18080;
}
server {
listen       80;
server_name  localhost;
location / {
proxy_connect_timeout   3;
proxy_send_timeout      30;
proxy_read_timeout      30;
proxy_pass http://localhost;
}
}
}

 
   浠g悊璁劇疆濡備笅錛?/p>

proxy_redirect          off;
proxy_set_header        Host $host;
proxy_set_header        X-Real-IP $remote_addr;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   300;
proxy_send_timeout      300;
proxy_read_timeout      300;
proxy_buffer_size       4k;
proxy_buffers           4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;


   gzip鍘嬬緝鐩稿叧閰嶇疆濡備笅錛?/p>

gzip              on;
gzip_min_length      1000;
gzip_types         text/plain text/css application/x-javascript;

 
  4銆乀omcat閰嶇疆


   瀵逛簬tomcat澶у閮藉緢鐔熸?zhèn)夊Q屽彧闇瑕佷慨鏀箂erver.xml閰嶇疆鏂囦歡鍗沖彲錛岃繖閲屾垜浠互apache-tomcat-6.0.14涓轟緥錛屽垎鍒湪server鐩綍錛岃В鍘嬬緝騫跺懡鍚嶄負(fù)錛歛pache-tomcat-6.0.14_1銆乤pache-tomcat-6.0.14_2銆?/p>


    絎竴澶勭鍙d慨鏀癸細(xì)

<!--  淇敼port绔彛錛?8006 淇╀釜tomcat涓嶈兘閲嶅錛岀鍙i殢鎰忥紝鍒お灝?->
<Server port="18006" shutdown="SHUTDOWN">

 
   絎簩澶勭鍙d慨鏀癸細(xì)

<!-- port="18081" tomcat鐩戝惉绔彛錛岄殢鎰忚緗紝鍒お灝?-->
<Connector port="18081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
 


   絎笁澶勭鍙d慨鏀癸細(xì)

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


   Engine鍏冪礌澧炲姞jvmRoute灞炴э細(xì)

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1">

 
    涓や釜tomcat鐨勭鍙e埆閲嶅錛屼繚璇佽兘鍚姩璧鋒潵錛屽彟涓涓猼omcat閰嶇疆甯屾嵎鐪佺暐錛岀洃鍚鍙d負(fù)18080錛岄檮浠朵腑鎴戜滑灝嗕笂浼犳墍鏈夌殑閰嶇疆淇℃伅銆?/p>


5銆侀獙璇侀厤緗笌嫻嬭瘯璐熻澆鍧囪 


    棣栧厛嫻嬭瘯nginx閰嶇疆鏄惁姝g‘錛屾祴璇曞懡浠わ細(xì)nginx -t  (榛樿楠岃瘉:conf\nginx.conf),涔熷彲浠ユ寚瀹氶厤緗枃浠惰礬寰勩?/p>

 姝や緥nginx瀹夎鐩綍錛欴:\server\nginx-0.8.20錛宒os鐜涓嬪浘鐢婚潰鎴愬姛紺轟緥錛?br />

   鍏舵楠岃瘉tomcat錛屽惎鍔ㄤ袱涓猼omcat錛屼笉鍑虹幇绔彛鍐茬獊鍗充負(fù)鎴愬姛錛坱omcat渚濊禆鐨刯ava絳夋悶“鎸ㄨ涪”鐨勫氨搴熻瘽涓嶈浜?jiǎn)锛?jí)錛?/p>

 

    鏈鍚庨獙璇侀厤緗礋杞藉潎琛¤緗紝http://localhost/ 鎴?a style="background-color: transparent; color: rgb(102,102,102)" href="http://localhost/index.jsp" mce_href="http://localhost/index.jsp">http://localhost/index.jsp 銆傛垜淇敼浜?jiǎn)index.jsp欏甸潰錛屽鍔犳棩蹇楄緭鍑轟俊鎭紝渚夸簬瑙傚療銆傛敞鎰忥細(xì)宸︿笂瑙掑皬鐚ご涓婄殑錛歛ccess tomcat2銆乤ccess tomcat1銆傝鏄庤闂簡(jiǎn)涓嶅悓鐨則omcat銆?/p>

  

 
     鑷蟲window涓媙ginx+tomcat璐熻澆鍧囪 閰嶇疆緇撴潫錛屽叧浜巘omcat Session鐨勯棶棰橀氬父鏄噰鐢╩emcached錛屾垨鑰呴噰鐢╪ginx_upstream_jvm_route 錛屼粬鏄竴涓?Nginx 鐨勬墿灞曟ā鍧楋紝鐢ㄦ潵瀹炵幇鍩轟簬 Cookie 鐨?Session Sticky 鐨勫姛鑳姐傚鏋渢omcat榪囧涓嶅緩璁畇ession鍚屾錛宻erver闂寸浉浜掑悓姝ession寰堣楄祫婧愶紝楂樺茍鍙戠幆澧冨鏄撳紩璧稴ession椋庢毚銆傝鏍規(guī)嵁鑷繁搴旂敤鎯呭喌鍚堢悊閲囩撼session瑙e喅鏂規(guī)銆?/p>



 浣滆咃細(xì)niumd 

  Blog:http://ari.iteye.com



abin 2013-01-03 14:51 鍙戣〃璇勮
]]>
nginx tomcathttp://www.tkk7.com/stevenjohn/archive/2013/01/03/393708.htmlabinabinThu, 03 Jan 2013 06:47:00 GMThttp://www.tkk7.com/stevenjohn/archive/2013/01/03/393708.htmlhttp://www.tkk7.com/stevenjohn/comments/393708.htmlhttp://www.tkk7.com/stevenjohn/archive/2013/01/03/393708.html#Feedback0http://www.tkk7.com/stevenjohn/comments/commentRss/393708.htmlhttp://www.tkk7.com/stevenjohn/services/trackbacks/393708.html//nginx.conf


#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
error_log  logs/error.log  info;

pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
    include    gzip.conf; 
    upstream localhost { 
      #鏍規(guī)嵁ip璁$畻灝嗚姹傚垎閰嶅悇閭d釜鍚庣tomcat錛岃澶氫漢璇涓哄彲浠ヨВ鍐硈ession闂錛屽叾瀹炲茍涓嶈兘銆?nbsp;
      #鍚屼竴鏈哄櫒鍦ㄥ緗戞儏鍐典笅錛岃礬鐢卞垏鎹紝ip鍙兘涓嶅悓 
      #ip_hash;  
      server localhost:16300  weight=5; 
      server localhost:16400  weight=1; 
     } 

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
      proxy_connect_timeout   3; 
                    proxy_send_timeout      30; 
                    proxy_read_timeout      30; 
                    proxy_pass http://localhost
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }


    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}


    # HTTPS server
    #
    #server {
    #    listen       443;
    #    server_name  localhost;

    #    ssl                  on;
    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_timeout  5m;

    #    ssl_protocols  SSLv2 SSLv3 TLSv1;
    #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    #    ssl_prefer_server_ciphers   on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}





//鍦?NGINX_HOME%/conf/涓嬮潰鏂板proxy.conf
proxy_redirect          off; 
proxy_set_header        Host $host; 
proxy_set_header        X-Real-IP $remote_addr; 
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for; 
client_max_body_size    10m; 
client_body_buffer_size 128k; 
proxy_connect_timeout   300; 
proxy_send_timeout      300; 
proxy_read_timeout      300; 
proxy_buffer_size       4k; 
proxy_buffers           4 32k; 
proxy_busy_buffers_size 64k; 
proxy_temp_file_write_size 64k;




//鍦?NGINX_HOME%/conf/涓嬮潰鏂板gzip.conf
gzip              on; 
gzip_min_length      1000; 
gzip_types         text/plain text/css application/x-javascript;





//tomcat63    %TOMCAT_HOME%/conf/server.xml

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="16305" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
 
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->
   
   
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="16300" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->          
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="16309" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">        
    -->
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat63">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->       

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

      </Host>
    </Engine>
  </Service>
</Server>




%TOMCAT_HOME%/conf/server.xml

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="16405" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
 
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->
   
   
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="16400" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->          
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="16409" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">        
    -->
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat64">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->       

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

      </Host>
    </Engine>
  </Service>
</Server>





鍏堝惎鍔╪ginx錛屽悗鍚姩tomcat銆?br />

棣栧厛嫻嬭瘯nginx閰嶇疆鏄惁姝g‘錛屾祴璇曞懡浠わ細(xì)nginx -t  (榛樿楠岃瘉:conf\nginx.conf),涔熷彲浠ユ寚瀹氶厤緗枃浠惰礬寰勩?/p>

鍏舵楠岃瘉tomcat錛屽惎鍔ㄤ袱涓猼omcat錛屼笉鍑虹幇绔彛鍐茬獊鍗充負(fù)鎴愬姛錛坱omcat渚濊禆鐨刯ava絳夋悶“鎸ㄨ涪”鐨勫氨搴熻瘽涓嶈浜?jiǎn)锛?jí)錛?/p>


 



abin 2013-01-03 14:47 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲精品456在线播放| 在线精品亚洲一区二区| 国产精品亚洲综合专区片高清久久久 | 国产成人无码区免费网站| 国产日韩AV免费无码一区二区三区 | 亚洲mv国产精品mv日本mv| 亚洲精品在线免费观看| 亚洲综合久久久久久中文字幕| 久久精品蜜芽亚洲国产AV| 337p日本欧洲亚洲大胆精品555588 | gogo全球高清大胆亚洲| 亚洲日本韩国在线| 亚洲中文字幕无码爆乳AV| 亚洲AV午夜福利精品一区二区| 亚洲AV成人一区二区三区AV| 亚洲视频一区网站| 亚洲精品亚洲人成在线播放| 亚洲成av人在线观看网站 | 亚洲第一永久在线观看| 亚洲五月综合缴情婷婷| 亚洲1区2区3区精华液| 一级一黄在线观看视频免费| 国产无遮挡无码视频免费软件 | 国产免费AV片在线观看播放| 免费无码H肉动漫在线观看麻豆 | 黄页免费视频播放在线播放| 久久国产乱子伦精品免费午夜 | 中文在线日本免费永久18近| 亚洲免费在线播放| 日韩欧毛片免费视频| 国产高清在线精品免费软件 | 免费av欧美国产在钱| 亚洲产国偷V产偷V自拍色戒| 免费国产一级特黄久久| 日日麻批免费40分钟日本的| 最近最好的中文字幕2019免费| 免费国产真实迷j在线观看| 国产亚洲综合色就色| 亚洲综合色区中文字幕| 又长又大又粗又硬3p免费视频| 午夜爽爽爽男女免费观看影院|