{"id":8553,"date":"2024-02-06T13:11:40","date_gmt":"2024-02-06T04:11:40","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=8553"},"modified":"2024-02-06T13:53:27","modified_gmt":"2024-02-06T04:53:27","slug":"nexus-repository-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=8553","title":{"rendered":"Nexus Repository \uc124\uce58\ud558\uae30 on Ubuntu 20.04"},"content":{"rendered":"<h1>Nexus Repository \uc124\uce58\ud558\uae30<\/h1>\n<h2>Nexus Repository \uc6a9\ub3c4<\/h2>\n<ul>\n<li>\ud574\uc678 Repository \uce90\uc2dc\uc11c\ubc84<\/li>\n<li>\ud3d0\uc1c4\ub9dd\uc5d0\uc11c \uc678\ubd80 Repository \ub77c\uc774\ube0c\ub7ec\ub9ac \uc774\uc6a9<\/li>\n<li>\uc0ac\ub0b4 \ub77c\uc774\ube0c\ub7ec\ub9ac \ubc30\ud3ec<\/li>\n<li>\uacf5\uc2dd Repository \uc5d0 \uc5c6\ub294 3rd \ud30c\ud2f0 \ub77c\uc774\ube0c\ub7ec\ub9ac \uacf5\uc720<\/li>\n<\/ul>\n<h3>\ub2e4\uc6b4\ub85c\ub4dc<\/h3>\n<p><a href=\"https:\/\/help.sonatype.com\/en\/download.html\">https:\/\/help.sonatype.com\/en\/download.html<\/a> \uc5d0\uc11c Unix archive \ub97c \ub2e4\uc6b4\ubc1b\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-bash\">sudo apt-get install openjdk-8-jdk\nwget https:\/\/download.sonatype.com\/nexus\/3\/latest-unix.tar.gz\ntar -xvzf latest-unix.tar.gz<\/code><\/pre>\n<h2>\uc124\uce58\ud558\uae30<\/h2>\n<pre><code class=\"language-bash\">sudo mkdir -p \/opt\/nexus\nsudo mv nexus-3.64.0-04 \/opt\/nexus\/\nsudo mv sonatype-work\/ \/opt\/<\/code><\/pre>\n<h2>\uc124\uc815\ud558\uae30<\/h2>\n<pre><code class=\"language-bash\"># \uacc4\uc815\uc0dd\uc131\nsudo useradd -m nexus\n\n# sudo \uad8c\ud55c \ubd80\uc5ec\n# sudo vi \/etc\/sudoers\nsudo visudo\n......\nnexus   ALL=(ALL)       NOPASSWD:ALL\n\n\uc18c\uc720\uc790 \ubcc0\uacbd\nsudo chown -R nexus:nexus \/opt\/nexus\nsudo chown -R nexus:nexus \/opt\/sonatype-work\n\n# \uc2e4\ud589 \uc720\uc800 \ubcc0\uacbd\nsudo vi \/opt\/nexus\/nexus-3.64.0-04\/bin\/nexus.rc\nrun_as_user=&quot;nexus&quot;\n\n# \ubd80\ud305\uc2dc \uc2e4\ud589\nsudo ln -s \/opt\/nexus\/nexus-3.64.0-04\/bin\/nexus \/etc\/init.d\/nexus\n\n# \uc2e4\ud589\n\/etc\/init.d\/nexus start<\/code><\/pre>\n<h2>\uc811\uc18d\ud558\uae30<\/h2>\n<p><a href=\"http:\/\/localhost:8081\/\">http:\/\/localhost:8081\/<\/a> \uc5d0 \uc811\uc18d\ud558\uba74 \ub125\uc11c\uc2a4\uc5d0 \uc811\uc18d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>admin \uacc4\uc815\uc73c\ub85c \ub85c\uadf8\uc778\ud558\uae30 \uc704\ud574\uc11c\ub294 <code>cat \/opt\/nexus\/sonatype-work\/nexus3\/admin.password<\/code> \uc5d0\uc11c \ube44\ubc00\ubc88\ud638\ub97c \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uacc4\uc815\uc0dd\uc131<\/h2>\n<p>\uc544\uc774\ub514\/\ud328\uc2a4\uc6cc\ub4dc \uc5d0 nexus\/nexus \ub97c \uc785\ub825\ud574 \uacc4\uc815\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2024\/02\/2024-02-06-01.png\"><img decoding=\"async\" src=\"https:\/\/www.skyer9.pe.kr\/wordpress\/wp-content\/uploads\/2024\/02\/2024-02-06-01-300x297.png\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nexus Repository \uc124\uce58\ud558\uae30 Nexus Repository \uc6a9\ub3c4 \ud574\uc678 Repository \uce90\uc2dc\uc11c\ubc84 \ud3d0\uc1c4\ub9dd\uc5d0\uc11c \uc678\ubd80 Repository \ub77c\uc774\ube0c\ub7ec\ub9ac \uc774\uc6a9 \uc0ac\ub0b4 \ub77c\uc774\ube0c\ub7ec\ub9ac \ubc30\ud3ec \uacf5\uc2dd Repository \uc5d0 \uc5c6\ub294 3rd \ud30c\ud2f0 \ub77c\uc774\ube0c\ub7ec\ub9ac \uacf5\uc720 \ub2e4\uc6b4\ub85c\ub4dc https:\/\/help.sonatype.com\/en\/download.html \uc5d0\uc11c Unix archive \ub97c \ub2e4\uc6b4\ubc1b\uc2b5\ub2c8\ub2e4. sudo apt-get install openjdk-8-jdk wget https:\/\/download.sonatype.com\/nexus\/3\/latest-unix.tar.gz tar -xvzf latest-unix.tar.gz \uc124\uce58\ud558\uae30 sudo mkdir -p \/opt\/nexus sudo mv nexus-3.64.0-04 \/opt\/nexus\/ sudo mv sonatype-work\/ \/opt\/ \uc124\uc815\ud558\uae30\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=8553\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-8553","post","type-post","status-publish","format-standard","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8553"}],"version-history":[{"count":5,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8553\/revisions"}],"predecessor-version":[{"id":8561,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/8553\/revisions\/8561"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}