{"id":217,"date":"2016-11-30T23:40:03","date_gmt":"2016-11-30T23:40:03","guid":{"rendered":"http:\/\/www.hadooh.com\/?p=217"},"modified":"2016-12-18T01:56:55","modified_gmt":"2016-12-18T01:56:55","slug":"apache-tomcat-%eb%a1%9c%eb%93%9c%eb%b0%b8%eb%9f%b0%ec%8b%b1-%eb%b0%8f-%ec%84%b8%ec%85%98-%ed%81%b4%eb%9f%ac%ec%8a%a4%ed%84%b0%eb%a7%81-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.hadooh.com\/?p=217","title":{"rendered":"Apache-Tomcat \ub85c\ub4dc\ubc38\ub7f0\uc2f1 \ubc0f \uc138\uc158 \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc124\uc815\ud558\uae30"},"content":{"rendered":"<p>\uc544\uc8fc \uc798 \uc815\ub9ac\ub41c \ubb38\uc11c\ub97c \ubcf4\uba74 \uaf2d \uc2a4\ud06c\ub7a9\ud574 \ub193\uace0\uc2f6\ub2e4.<\/p>\n<p>\ub354\uad70\ub2e4\ub098 \uc774\ud574\ud558\uae30 \uc27d\uac8c\ub3c4 \uc801\uc5b4\ub193\uc73c\uc168\ub2e4.<\/p>\n<p>\ub300\ub2e8\ud558\uc2e0 \ubd84\uc778\ub4ef<\/p>\n<ol>\n<li><a href=\"http:\/\/x2framework.org\/x2\/handler\/ForumBoard?topMenuType=1&amp;forumId=0000000064&amp;menuCd=&amp;pageNo=1&amp;x2start=Info&amp;orderType=1&amp;printType=2&amp;boardId=0000000000003580&amp;memberYn=N&amp;listCount=20&amp;period=&amp;sdate=&amp;edate=&amp;fdFlag=all&amp;stext=\">Apache-Tomcat \ub85c\ub4dc\ubc38\ub7f0\uc2f1 \ubc0f \uc138\uc158 \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc124\uc815\ud558\uae30<\/a><\/li>\n<li><a href=\"http:\/\/x2framework.org\/x2\/handler\/ForumBoard?topMenuType=1&amp;forumId=0000000064&amp;menuCd=&amp;pageNo=1&amp;x2start=Info&amp;orderType=1&amp;printType=2&amp;boardId=0000000000003580&amp;memberYn=N&amp;listCount=20&amp;period=&amp;sdate=&amp;edate=&amp;fdFlag=all&amp;stext=\">http:\/\/bryan7.tistory.com\/432<br \/>\n<\/a><\/li>\n<\/ol>\n<p>1.\uc124\uce58\ud658\uacbd<br \/>\n2.Apache Web server\uc124\uc815<br \/>\n3.Tomcat Application Server \uc124\uc815<br \/>\n4.Web Application\uc5d0 Clustering\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \uc124\uc815<br \/>\n5.Clustering Test<\/p>\n<p>\ucd94\uac00)<br \/>\n1. apache 1.2.7\ubc84\uc804\uc774\ud6c4\ub85c<\/p>\n<p>worker.loadbalancer.balanced_workers=tomcat1,tomcat2<br \/>\n&#8211;&gt; worker.loadbalancer.balance_workers=tomcat1,tomcat2<\/p>\n<p>2. mod_jk\uc758 \ub77c\uc6b0\ud305 \ub85c\uadf8\ub97c \ubcf4\ub824\uba74 httpd.conf \ud30c\uc77c\uc5d0<br \/>\nJkRequestLogFormat \u00a0&#8220;%w %R %V %T %U %s&#8221; \uc635\uc158\uc744 \ucd94\uac00\ud558\uc790<\/p>\n<p><a href=\"https:\/\/www.hadooh.com\/wp-content\/uploads\/2016\/11\/jklog.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-222\" src=\"https:\/\/www.hadooh.com\/wp-content\/uploads\/2016\/11\/jklog.png\" alt=\"jklog\" width=\"1011\" height=\"622\" srcset=\"https:\/\/www.hadooh.com\/wp-content\/uploads\/2016\/11\/jklog.png 1011w, https:\/\/www.hadooh.com\/wp-content\/uploads\/2016\/11\/jklog-300x185.png 300w, https:\/\/www.hadooh.com\/wp-content\/uploads\/2016\/11\/jklog-768x472.png 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>[workers.properties]<\/p>\n<pre class=\"lang:default decode:true\" title=\"workers.properties\">worker.list=loadbalancer\r\n\r\nworker.tomcat1.type=ajp13\r\nworker.tomcat1.host=localhost\r\nworker.tomcat1.port=8009\r\nworker.tomcat1.lbfactor=1\r\n\r\nworker.tomcat2.type=ajp13\r\nworker.tomcat2.host=localhost\r\nworker.tomcat2.port=8010\r\nworker.tomcat2.lbfactor=1\r\n\r\nworker.loadbalancer.type=lb\r\nworker.loadbalancer.balance_workers=tomcat1,tomcat2<\/pre>\n<p>&nbsp;<\/p>\n<p>[httpd.conf]<\/p>\n<pre class=\"lang:default decode:true\" title=\"httpd.conf\">LoadModule jk_module modules\/mod_jk.so\r\n\r\n\r\n&lt;IfModule jk_module&gt;\r\nJkWorkersFile conf\/workers.properties\r\nJkLogFile logs\/jk.log\r\nJkLogLevel info\r\nJkLogStampFormat \"[%a %b %d %H:%M:%S %Y]\"\r\nJkRequestLogFormat  \"%w %R %V %T %U %s\"\r\nJkMount \/*.jsp loadbalancer\r\nJkMount \/*.js loadbalancer\r\nJkMount \/*.do loadbalancer\r\nJkMount \/*.html loadbalancer\r\nJkMount \/servlet\/* loadbalancer\r\nJkMount \/*.gif loadbalancer\r\nJkMount \/*.png loadbalancer\r\nJkMount \/*.jpg loadbalancer\r\n&lt;\/IfModule&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>[web.xml]<\/p>\n<pre class=\"lang:default decode:true\" title=\"web.xml\">&lt;web-app&gt;\r\n\r\n   &lt;distributable\/&gt;\r\n&lt;\/web-app&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>[server.xml]<\/p>\n<pre class=\"lang:default decode:true\">&lt;Engine defaultHost=\"localhost\" name=\"Catalina\" jvmRoute=\"tomcat1\"&gt;\r\n     &lt;Cluster className=\"org.apache.catalina.ha.tcp.SimpleTcpCluster\"\/&gt;\r\n     &lt;Host appBase=\"webapps\" autoDeploy=\"true\" name=\"localhost\" unpackWARs=\"true\"&gt;\r\n        &lt;Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\" pattern=\"%h %l %u %t &amp;quot;%r&amp;quot; %s %b\" prefix=\"localhost_access_log.\" suffix=\".txt\"\/&gt;\r\n     &lt;Context docBase=\"MES\" path=\"\/MES\" reloadable=\"true\" source=\"org.eclipse.jst.jee.server:MES\"\/&gt;&lt;\/Host&gt;\r\n&lt;\/Engine&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc544\uc8fc \uc798 \uc815\ub9ac\ub41c \ubb38\uc11c\ub97c \ubcf4\uba74 \uaf2d \uc2a4\ud06c\ub7a9\ud574 \ub193\uace0\uc2f6\ub2e4. \ub354\uad70\ub2e4\ub098 \uc774\ud574\ud558\uae30 \uc27d\uac8c\ub3c4 \uc801\uc5b4\ub193\uc73c\uc168\ub2e4. \ub300\ub2e8\ud558\uc2e0 \ubd84\uc778\ub4ef Apache-Tomcat \ub85c\ub4dc\ubc38\ub7f0\uc2f1 \ubc0f \uc138\uc158 \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc124\uc815\ud558\uae30 http:\/\/bryan7.tistory.com\/432 1.\uc124\uce58\ud658\uacbd 2.Apache Web server\uc124\uc815 3.Tomcat Application Server \uc124\uc815 4.Web Application\uc5d0 Clustering\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \uc124\uc815 5.Clustering Test \ucd94\uac00) 1. apache 1.2.7\ubc84\uc804\uc774\ud6c4\ub85c worker.loadbalancer.balanced_workers=tomcat1,tomcat2 &#8211;&gt; worker.loadbalancer.balance_workers=tomcat1,tomcat2 2. mod_jk\uc758 \ub77c\uc6b0\ud305 \ub85c\uadf8\ub97c \ubcf4\ub824\uba74 httpd.conf \ud30c\uc77c\uc5d0 JkRequestLogFormat \u00a0&#8220;%w %R %V %T &hellip; <a href=\"https:\/\/www.hadooh.com\/?p=217\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Apache-Tomcat \ub85c\ub4dc\ubc38\ub7f0\uc2f1 \ubc0f \uc138\uc158 \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc124\uc815\ud558\uae30<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/posts\/217"}],"collection":[{"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":10,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/www.hadooh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hadooh.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}