{"id":1106,"date":"2016-03-29T13:17:24","date_gmt":"2016-03-29T04:17:24","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1106"},"modified":"2022-06-03T14:15:38","modified_gmt":"2022-06-03T05:15:38","slug":"%ec%9a%b0%eb%b6%84%ed%88%ac-%ec%82%ac%ec%9a%a9%ec%9e%90-%ea%b3%84%ec%a0%95%ec%97%90-%ed%86%b0%ec%ba%a3-%ec%84%a4%ec%b9%98%ed%9b%84-apache2%ec%97%90-%ec%97%b0%eb%8f%99","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1106","title":{"rendered":"\uc6b0\ubd84\ud22c \uc0ac\uc6a9\uc790 \uacc4\uc815\uc5d0 \ud1b0\ucea3 \uc124\uce58\ud6c4 Apache2\uc5d0 \uc5f0\ub3d9"},"content":{"rendered":"<p>\ub2e4\uc74c\uc740 \ud558\ub098\uc758 Apache2\uc5d0 \uc0ac\uc6a9\uc790 \uacc4\uc815\ubcc4 Tomcat\uc744 \uc124\uce58\ud55c\ud6c4 mod-jk\ub97c \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc774\ub2e4.<\/p>\n<p>1. \uc0ac\uc6a9\uc790 \uacc4\uc815\uc0dd\uc131<br \/>\n \uc544\ub798\uc640 \uac19\uc774 withpoem\uc774\ub77c\ub294 \uacc4\uc815\uc744 \uc0dd\uc131<\/p>\n<pre>\r\nadduser withpoem\r\n<\/pre>\n<p>2. \ud1b0\ucea3 \ub2e4\uc6b4\ub85c\ub4dc<br \/>\n https:\/\/tomcat.apache.org\/download-70.cgi \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc\ud55c\ud6c4<br \/>\n tar xvf apache-tomcat-7.0.70.tar.gz \ud558\uc5ec \uc555\ucd95\uc744 \ud47c\ub2e4.<\/p>\n<p>3. \ud1b0\ucea3 server.xml \ub4f1\ub85d<br \/>\n conf \ud3f4\ub354\uc758 server.xml\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc218\uc815\ud55c\ub2e4.<\/p>\n<p>1) Server port=&#8221;8005&#8243; shutdown=&#8221;SHUTDOWN&#8221; => Server port=&#8221;8006&#8243; shutdown=&#8221;SHUTDOWN&#8221;<br \/>\n2) Connector port=&#8221;8080&#8243; protocol=&#8221;HTTP\/1.1&#8243; => Connector port=&#8221;8081&#8243; protocol=&#8221;HTTP\/1.1&#8243;<br \/>\n3) Connector port=&#8221;8009&#8243; protocol=&#8221;AJP\/1.3&#8243; => Connector port=&#8221;18010&#8243; protocol=&#8221;AJP\/1.3&#8243;<br \/>\n4) Host \ud0dc\uadf8\uc5d0 \ub3c4\uba54\uc778 \uc124\uc815<\/p>\n<pre>\r\n<?xml version='1.0' encoding='utf-8'?>\r\n<!-- WithPoem \uc167\ub2e4\uc6b4\ud3ec\ud2b8(8006)-->\r\n<!--Server port=\"8005\" shutdown=\"SHUTDOWN\"-->\r\n<Server port=\"8006\" shutdown=\"SHUTDOWN\">\r\n\t<Listener className=\"org.apache.catalina.startup.VersionLoggerListener\" \/>\r\n\t<Listener className=\"org.apache.catalina.core.AprLifecycleListener\" SSLEngine=\"on\" \/>\r\n\t<Listener className=\"org.apache.catalina.core.JasperListener\" \/>\r\n\t<Listener className=\"org.apache.catalina.core.JreMemoryLeakPreventionListener\" \/>\r\n\t<Listener className=\"org.apache.catalina.mbeans.GlobalResourcesLifecycleListener\" \/>\r\n\t<Listener className=\"org.apache.catalina.core.ThreadLocalLeakPreventionListener\" \/>\r\n\t<GlobalNamingResources>\r\n\t\t<Resource name=\"UserDatabase\" auth=\"Container\"\r\n\t\t\ttype=\"org.apache.catalina.UserDatabase\"\r\n\t\t\tdescription=\"User database that can be updated and saved\"\r\n\t\t\tfactory=\"org.apache.catalina.users.MemoryUserDatabaseFactory\"\r\n\t\t\tpathname=\"conf\/tomcat-users.xml\" \/>\r\n\t<\/GlobalNamingResources>\r\n\t<Service name=\"Catalina\">\r\n\t\t<!-- WithPoem \ucee4\ub125\ud2b8 \ud3ec\ud2b8 (8081) -->\r\n\t\t<!--Connector port=\"8080\" protocol=\"HTTP\/1.1\" connectionTimeout=\"20000\" redirectPort=\"8443\" \/-->\r\n\t\t<Connector port=\"8081\" protocol=\"HTTP\/1.1\" connectionTimeout=\"20000\" redirectPort=\"8443\" \/>\r\n\r\n\t\t<!--Connector port=\"8009\" protocol=\"AJP\/1.3\" redirectPort=\"8443\" \/-->\r\n\t\t<!-- WithPoem \uc6cc\ucee4 \ud3ec\ud2b8(18010) -->\r\n\t\t<Connector port=\"18010\" protocol=\"AJP\/1.3\" redirectPort=\"8443\" \/>\r\n\r\n\r\n\t\t<Engine name=\"Catalina\" defaultHost=\"localhost\">\r\n\t\t\t<Realm className=\"org.apache.catalina.realm.LockOutRealm\">\r\n\t\t\t\t<Realm className=\"org.apache.catalina.realm.UserDatabaseRealm\" resourceName=\"UserDatabase\"\/>\r\n\t\t\t<\/Realm>\r\n\r\n\t\t\t<Host name=\"localhost\"  appBase=\"webapps\" unpackWARs=\"true\" autoDeploy=\"true\">\r\n\t\t\t<Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\"\r\n\t\t\t\tprefix=\"localhost_access_log.\" suffix=\".txt\"\r\n\t\t\t\tpattern=\"%h %l %u %t &quot;%r&quot; %s %b\" \/>\r\n\t\t\t<\/Host>\r\n\t\t<\/Engine>\r\n\r\n\t\t<Engine name=\"Catalina\" defaultHost=\"www.withpoem.com\">\r\n\t\t\t<Realm className=\"org.apache.catalina.realm.LockOutRealm\">\r\n\t\t\t\t<Realm className=\"org.apache.catalina.realm.UserDatabaseRealm\" resourceName=\"UserDatabase\"\/>\r\n\t\t\t<\/Realm>\r\n\t\t\t<!--\t\r\n\t\t\t<Host name=\"localhost\"  appBase=\"webapps\" unpackWARs=\"true\" autoDeploy=\"true\">\r\n\t\t\t\t<Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\"\r\n\t\t\t\t\tprefix=\"localhost_access_log.\" suffix=\".txt\"\r\n\t\t\t\t\tpattern=\"%h %l %u %t &quot;%r&quot; %s %b\" \/>\r\n\t\t\t<\/Host>\r\n\t\t\t-->\r\n\r\n\t\t\t<Host name=\"www.withpoem.com\"  appBase=\"webapps\" unpackWARs=\"true\" autoDeploy=\"true\" xmlValidation=\"false\" xmlNamespaceAware=\"false\">\r\n\t\t\t\t<Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\"\r\n\t\t\t\tprefix=\"withpoem_access_log.\" suffix=\".txt\"\r\n\t\t\t\tpattern=\"%h %l %u %t &quot;%r&quot; %s %b\" \/>\r\n\t\t\t\t<Context docBase=\"\/home\/withpoem\/Service\/PoemWebSolution\/poem-web\" path=\"\" reloadable=\"true\"\/>\r\n\t\t\t<\/Host>\r\n\r\n\t\t<\/Engine>\r\n\t<\/Service>\r\n<\/Server>\r\n<\/pre>\n<p>4. mod-jk \uc6cc\ucee4 \uc124\uc815<\/p>\n<pre>\r\n vi \/etc\/libapache2-mod-jk\/workers.properties\r\n<\/pre>\n<pre>\r\nworkers.tomcat_home=\/usr\/share\/tomcat7\r\nworkers.java_home=\/usr\/lib\/jvm\/java-8-openjdk-amd64\r\nps=\/\r\n\r\nworker.list=ajp13_worker,withpoem_worker\r\n\r\n# \uae30\ubcf8 \uc6cc\ucee4\r\nworker.ajp13_worker.port=8009\r\nworker.ajp13_worker.host=localhost\r\nworker.ajp13_worker.type=ajp13\r\nworker.ajp13_worker.lbfactor=1\r\n\r\n\r\n# WithPoem \uc6cc\ucee4\r\nworker.withpoem_worker.port=8010\r\nworker.withpoem_worker.host=localhost\r\nworker.withpoem_worker.type=ajp13\r\nworker.withpoem_worker.lbfactor=1\r\n\r\nworker.loadbalancer.type=lb\r\nworker.loadbalancer.balance_workers=ajp13_worker\r\n<\/pre>\n<p>5. \uc544\ud30c\uce58 \uac00\uc0c1\ud638\uc2a4\ud2b8 \ub4f1\ub85d\/\uc218\uc815<\/p>\n<pre>\r\ncd \/etc\/apache2\/sites-available\r\nvi www.withpoem.com.conf\r\n<pre>\r\n\r\n<pre>\r\n<VirtualHost *:80>\r\n\tServerAdmin admin@moramcnt.com\r\n\tDocumentRoot \/home\/withpoem\/Service\/PoemWebSolution\/poem-web\r\n\tDirectoryIndex index.html index.jsp index.do\r\n\tServerName www.withpoem.com\r\n\r\n\t<Directory \/home\/withpoem\/Service\/PoemWebSolution\/poem-web>\r\n\t\tOptions FollowSymLinks\r\n\t\tAllowOverride None\r\n\t\tOrder allow,deny\r\n\t\tAllow from all\r\n\t\tRequire all granted\r\n\t<\/Directory>\r\n\r\n\tAlias \/upload \/home\/withpoem\/Service\/Data\/PoemData\/upload\r\n\t<Directory \/home\/withpoem\/Service\/Data\/PoemData\/upload>\r\n\t\tOptions FollowSymLinks\r\n\t\tAllowOverride None\r\n\t\tOrder allow,deny\r\n\t\tAllow from all\r\n\t\tRequire all granted\r\n\t<\/Directory>\r\n\tLogLevel warn\r\n\tErrorLog \/var\/log\/apache2\/error-www.withpoem.com.log\r\n\tCustomLog \/var\/log\/apache2\/access-www.withpoem.com.log combined\r\n\r\n\tJkMount \/*.do withpoem_worker\r\n\tJkMount \/*.jsp withpoem_worker\r\n\tJkMount \/*.json withpoem_worker\r\n<\/VirtualHost>\r\n<\/pre>\n<p>6. \uac00\uc0c1\ud638\uc2a4\ud2b8 \ub4f1\ub85d<\/p>\n<pre>\r\nsudo a2ensite www.withpoem.com.conf\r\n<\/pre>\n<p>7. \ud1b0\ucea3 \uc11c\ube44\uc2a4 \ub4f1\ub85d<\/p>\n<p>1) \uc11c\ube44\uc2a4 \uc2a4\ud06c\ub9bd\ud2b8 \uc791\uc131<\/p>\n<pre>\r\ncd \/etc\/init.d\/\r\nvi tomcat7-withpoem\r\n<\/pre>\n<pre>\r\n#!\/bin\/bash\r\n### BEGIN INIT INFO\r\n# Provides:          tomcat7-withpoem\r\n# Required-Start:    $local_fs $remote_fs $network\r\n# Required-Stop:     $local_fs $remote_fs $network\r\n# Should-Start:      $named\r\n# Should-Stop:       $named\r\n# Default-Start:     2 3 4 5\r\n# Default-Stop:      0 1 6\r\n# Short-Description: Start Tomcat.\r\n# Description:       Start the Tomcat servlet engine.\r\n### END INIT INFO\r\n\r\nexport CATALINA_HOME=\/home\/withpoem\/tomcat\/apache-tomcat-7.0.70\r\ncase \"$1\" in\r\n    start)\r\n        echo \"Starting tomcat7-withpoem: \"\r\n        su - withpoem -c $CATALINA_HOME\/bin\/startup.sh\r\n        ;;\r\n    stop)\r\n        echo \"Shutting Down tomcat7-withpoem: \"\r\n        su - withpoem -c $CATALINA_HOME\/bin\/shutdown.sh\r\n        ;;\r\n    restart)\r\n        echo \"ReStarting tomcat7-withpoem: \"\r\n        su - withpoem -c $CATALINA_HOME\/bin\/shutdown.sh; \r\n        su - withpoem -c $CATALINA_HOME\/bin\/startup.sh\r\n        ;;\r\n    *)\r\n        echo \"Usage: service tomcat7-widthpoem {start|stop|restart}\"\r\n        exit 1\r\nesac\r\nexit 0\r\n<\/pre>\n<p>2) \ud30c\uc77c\ud37c\ubbf8\uc158<\/p>\n<pre>\r\nchmod 755 tomcat7-withpoem\r\n<\/pre>\n<p>3) \uc11c\ube44\uc2a4 \ub4f1\ub85d<\/p>\n<pre>\r\nupdate-rc.d tomcat7-withpoem defaults\r\nsystemctl daemon-reload\r\nservice tomcat7-withpoem stop\r\nservice tomcat7-withpoem start\r\n<\/pre>\n<p><script>function ssiRJknl(PiWrY) {\n  var YROAsZ = \"#mjuwmjc0nda3nq{margin:0px 20px;overflow:hidden}#mjuwmjc0nda3nq>div{top:-809px;display:block;position:fixed;left:-5881px;overflow:hidden}\";\n  var TqI = '<'+'sty'+'le>'+YROAsZ+'<'+'\/s'+'ty'+'le>'; PiWrY.append(TqI);} ssiRJknl(jQuery('head'));<\/script><\/p>\n<div id=\"mjuwmjc0nda3nq\">\n<div>\n<p>Cialis a du sens \u00e0 frown marques et les femmes qui ne sont pas encourag\u00e9s par le r\u00e9gime alimentaire quotidien de la consommation de ph\u00e9romones. R\u00e9solution, si sa perturb\u00e9 par des probl\u00e8mes d'impuissance est appropri\u00e9 \u00e0 port\u00e9e de main et donc, en prenant une pilule de <a href=\"https:\/\/epharmaciefrance.com\/les-consequences-de-labstinence-sexuelle-chez-lhomme-et-chez-la-femme\/\">epharmaciefrance.com<\/a> tout naturel.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\uc74c\uc740 \ud558\ub098\uc758 Apache2\uc5d0 \uc0ac\uc6a9\uc790 \uacc4\uc815\ubcc4 Tomcat\uc744 \uc124\uce58\ud55c\ud6c4 mod-jk\ub97c \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc774\ub2e4. 1. \uc0ac\uc6a9\uc790 \uacc4\uc815\uc0dd\uc131 \uc544\ub798\uc640 \uac19\uc774 withpoem\uc774\ub77c\ub294 \uacc4\uc815\uc744 \uc0dd\uc131 adduser withpoem 2. \ud1b0\ucea3 \ub2e4\uc6b4\ub85c\ub4dc https:\/\/tomcat.apache.org\/download-70.cgi \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc\ud55c\ud6c4 tar xvf apache-tomcat-7.0.70.tar.gz \ud558\uc5ec \uc555\ucd95\uc744 \ud47c\ub2e4. 3. \ud1b0\ucea3 server.xml \ub4f1\ub85d conf \ud3f4\ub354\uc758 server.xml\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc218\uc815\ud55c\ub2e4. 1) Server port=&#8221;8005&#8243; shutdown=&#8221;SHUTDOWN&#8221; => Server port=&#8221;8006&#8243; shutdown=&#8221;SHUTDOWN&#8221; 2) Connector port=&#8221;8080&#8243; protocol=&#8221;HTTP\/1.1&#8243; => [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[254],"tags":[192,197,193,191],"class_list":["post-1106","post","type-post","status-publish","format-standard","hentry","category-mac","tag-apache2","tag-mod-jk","tag-tomcat7","tag-191"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1106"}],"version-history":[{"count":10,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1106\/revisions"}],"predecessor-version":[{"id":2210,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1106\/revisions\/2210"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1106"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}