티스토리 뷰

운영체제 : ubuntu 20.04.6

cpu : 4

ram : 8

disk : 500gb

 

apt update

apt install openjdk-8-jre-headless

cd /opt

wget https://download.sonatype.com/nexus/3/nexus-3.53.1-02-unix.tar.gz

https://help.sonatype.com/repomanager3/product-information/download/download-archives---repository-manager-3

!/bin/bash

set -e 
apt update
apt install openjdk-8-jre-headless
cd /opt
wget https://download.sonatype.com/nexus/3/nexus-3.53.1-02-unix.tar.gz
 

Download Archives - Repository Manager 3

We're Updating Our Product Names and Logos As we roll out our updated Sonatype brand, you will see product names and logos begin to change across My Sonatype. You may notice slight product name and logo variations—some new, some old—across resources as

help.sonatype.com

tar -zxvf latest-unix.tar.gz

mv /opt/nexus-3.30.1-01 /opt/nexus

adduser nexus
visudo
nexus ALL=(ALL) NOPASSWD: ALL
chown -R nexus:nexus /opt/nexus
chown -R nexus:nexus /opt/sonatype-work
vi /opt/nexus/bin/nexus.rc
run_as_user="nexus"

넥서스 서비스 설정파일 변경
vi /etc/systemd/system/nexus.service
[Unit]
Description=nexus service
After=network.target

[Service]
Type=forking
LimitNOFILE=65536
ExecStart=/opt/nexus/bin/nexus start
ExecStop=/opt/nexus/bin/nexus stop
User=nexus
Restart=on-abort

[Install]
WantedBy=multi-user.target
넥서스 서비스 시작
systemctl enable --now nexus

접속주소 : http://server_IP:8081

비밀번호조회
cat /opt/sonatype-work/nexus3/admin.password



'OS > ubuntu' 카테고리의 다른 글

ubuntu22.04 | vagrant설치 후 Provider libvirt로 배포.  (0) 2023.07.03
ubuntu | package 로컬 저장  (0) 2023.07.03
ubuntu 22.04 | nic 이름 변경  (0) 2023.06.24
ubuntu 20.04 | nfs 서버 생성.  (0) 2023.06.15
ubuntu 20.04 | 고정 ip 설정  (0) 2023.05.01
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함