{"id":1085,"date":"2016-07-21T00:36:09","date_gmt":"2016-07-20T15:36:09","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1085"},"modified":"2016-07-21T09:17:19","modified_gmt":"2016-07-21T00:17:19","slug":"%ec%9a%b0%eb%b6%84%ed%88%ac%ec%97%90-%eb%84%a5%ec%84%9c%ec%8a%a4-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1085","title":{"rendered":"\uc6b0\ubd84\ud22c\uc5d0 \ub125\uc11c\uc2a4 \uc124\uce58"},"content":{"rendered":"<p>1. \uac1c\uc694<br \/>\n   \uc6b0\ubd84\ud22c 16.04, Apache2, Tomcat7, JDK 1.8, Nexus nexus-2.13.0-01 \ubc84\uc804\uc744 \uae30\uc900\uc73c\ub85c \ud558\uc5ec \uc124\uce58<\/p>\n<p>2. \ub125\uc11c\uc2a4 \ub2e4\uc6b4\ub85c\ub4dc<br \/>\n   \ud1b0\ucea3\uacfc \uc5f0\ub3d9\ud558\uae30 \uc704\ud574 war\ud30c\uc77c\ub85c \ub2e4\uc6b4\ub85c\ub4dc<\/p>\n<pre>\r\nwget http:\/\/www.sonatype.org\/downloads\/nexus-latest.war\r\nmkdir nexus-2.13.0-01\r\nmkdir sonatype-work\r\nunzip nexus-latest.war -d nexus-2.13.0-01\/\r\n<\/pre>\n<p>\uc8fc\uc758\uc0ac\ud56d : \ud37c\ubbf8\uc158 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uba74<br \/>\nWEB-INF\/classes\ud3f4\ub354\uc5d0 nexus.properties\ud30c\uc77c\uc744 \uc5f4\uc5b4\ubcf4\uba74 \uc544\ub798\uc640 \uac19\uc774 \ub418\uc5b4\uc788\ub2e4.<\/p>\n<pre>\r\nnexus-work=${user.home}\/sonatype-work\/nexus\r\n<\/pre>\n<p>\/usr\/share\/tomcat7 \ud3f4\ub354\ubc11\uc73c\ub85c<br \/>\n sonatype-work\/nexus \ub77c\ub294 \ud3f4\ub354 \uc0dd\uc131\ud558\uace0 <\/p>\n<p> chown -R tomcat7<br \/>\n chgrp -R tomcat7 \ub85c \ubd80\uc5ec\ud558\uc5ec \ud574\uacb0<\/p>\n<p>3. Tomcat \uc124\uc815<br \/>\n   server.xml\uc5d0 \ub300\ud55c \uc124\uc815<\/p>\n<p>   cd \/etc\/tomcat7<br \/>\n   vi server.xml \ub85c \uc544\ub798 Host \ucd94\uac00<\/p>\n<pre>\r\n<Host name=\"repo.moramcnt.com\"  appBase=\"webapps\" unpackWARs=\"true\" autoDeploy=\"true\" xmlValidation=\"false\" xmlNamespaceAware=\"false\">\r\n        <Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs\"\r\n          \tprefix=\"repo_access_log.\" suffix=\".txt\"\r\n               \tpattern=\"%h %l %u %t &quot;%r&quot; %s %b\" \/>\r\n\t<Context docBase=\"\/home\/moram\/Service\/MoramWebSolution\/nexus\/nexus-2.13.0-01\" path=\"\" reloadable=\"true\"\/>\r\n<\/Host>\r\n<\/pre>\n<p>4. \uac00\uc0c1\ud638\uc2a4\ud2b8 \ub4f1\ub85d<br \/>\n   \uc544\ub798\uc640 \uac19\uc774 \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 \uac00\uc0c1\ud638\uc2a4\ud2b8\ub97c \uc544\ud30c\uce58\uc5d0 \ub4f1\ub85d\ud55c\ub2e4.<\/p>\n<pre>\r\ncd \/etc\/apache2\/sites-available\r\ncp 000-default.conf repo.moramcnt.com.conf\r\nvi repo.moramcnt.com.conf\r\n<\/pre>\n<pre>\r\n<VirtualHost *:80>\r\n\tServerAdmin admin@moramcnt.com\r\n\tDocumentRoot \/home\/moram\/service\/MoramWebSolution\/nexus\/nexus-2.13.0-01\r\n\tDirectoryIndex index.html\r\n\r\n\tServerName repo.moramcnt.com\r\n\t<Directory \/home\/moram\/service\/MoramWebSolution\/nexus\/nexus-2.13.0-01>\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\tLogLevel warn\r\n\tErrorLog \/var\/log\/apache2\/error-repo.moramcnt.com.log\r\n\tCustomLog \/var\/log\/apache2\/access-repo.moramcnt.com.log combined\r\n\r\n\tJkMount \/*.do ajp13_worker\r\n\tJkMount \/*.jsp ajp13_worker\r\n\tJkMount \/*.json ajp13_worker\r\n\r\n\t#----------------------------\r\n\t# nexus \uc124\uc815\r\n\t#----------------------------\r\n\tJkMount \/index.html ajp13_worker\r\n\tJkMount \/service\/* ajp13_worker\r\n\tJkMount \/content\/* ajp13_worker\r\n\tJkMount \/static\/* ajp13_worker\r\n\t#----------------------------\r\n<\/VirtualHost>\r\n<\/pre>\n<p>\uc704 \ud30c\uc77c\uc744 \uc774\uc6a9\ud558\uc5ec \uac00\uc0c1\ud638\uc2a4\ud2b8 \ub4f1\ub85d<\/p>\n<pre>\r\nsudo a2ensite repo.moramcnt.com.conf\r\n<\/pre>\n<p>5. \uc11c\ube44\uc2a4 \uc7ac\uc2dc\uc791<\/p>\n<pre>\r\nsudo service tomcat7 restart\r\nsudo service apache2 restart\r\n<\/pre>\n<p>6. \uadf8 \uc774\uc678\ub294 \uc774\uc804\uc5d0 \uc791\uc131\ud588\ub358<br \/>\n<a href=\"http:\/\/blog.moramcnt.com\/?p=630\">http:\/\/blog.moramcnt.com\/?p=630<\/a> \ub97c \ucc38\uc870<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uac1c\uc694 \uc6b0\ubd84\ud22c 16.04, Apache2, Tomcat7, JDK 1.8, Nexus nexus-2.13.0-01 \ubc84\uc804\uc744 \uae30\uc900\uc73c\ub85c \ud558\uc5ec \uc124\uce58 2. \ub125\uc11c\uc2a4 \ub2e4\uc6b4\ub85c\ub4dc \ud1b0\ucea3\uacfc \uc5f0\ub3d9\ud558\uae30 \uc704\ud574 war\ud30c\uc77c\ub85c \ub2e4\uc6b4\ub85c\ub4dc wget http:\/\/www.sonatype.org\/downloads\/nexus-latest.war mkdir nexus-2.13.0-01 mkdir sonatype-work unzip nexus-latest.war -d nexus-2.13.0-01\/ \uc8fc\uc758\uc0ac\ud56d : \ud37c\ubbf8\uc158 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uba74 WEB-INF\/classes\ud3f4\ub354\uc5d0 nexus.properties\ud30c\uc77c\uc744 \uc5f4\uc5b4\ubcf4\uba74 \uc544\ub798\uc640 \uac19\uc774 \ub418\uc5b4\uc788\ub2e4. nexus-work=${user.home}\/sonatype-work\/nexus \/usr\/share\/tomcat7 \ud3f4\ub354\ubc11\uc73c\ub85c sonatype-work\/nexus \ub77c\ub294 \ud3f4\ub354 \uc0dd\uc131\ud558\uace0 chown -R tomcat7 chgrp -R [&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":[6,31,49,7,4],"tags":[81,184,191],"class_list":["post-1085","post","type-post","status-publish","format-standard","hentry","category-java","category-31","category-unix","category-7","category-4","tag-nexus","tag-tomcat","tag-191"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1085","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=1085"}],"version-history":[{"count":2,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1085\/revisions"}],"predecessor-version":[{"id":1089,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1085\/revisions\/1089"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1085"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}