JAVA/툴 및 팁
nexus 설치 및 셋팅
달사자!
2019. 3. 22. 11:18
아래 링크를 참고해서 nexus를 설치해봄.
#설치하기
Centos에 biz라는 계정이 ~/apps 하위에 설치한다는 가정하에 진행
cd ~/apps
wget http://www.sonatype.org/downloads/nexus-latest-bundle.tar.gz --no-check-certificate
tar -xzf nexus-latest-bundle.tar.gz && rm -f nexus-latest-bundle.tar.gz && ln -s nexus-2.14.12-02 ~/apps/nexus
#서비스 등록
sudo su
cp /home/biz/apps/nexus/bin/nexus /etc/init.d/nexus
vi /etc/init.d/nexus 후 아래 내용으로 수정
#NEXUS_HOME=".."
NEXUS_HOME="/home/biz/apps/nexus"
#RUN_AS_USER=
RUN_AS_USER=biz
#PIDDIR="."
PIDDIR="/home/biz/apps/nexus"
#서비스 시작
service nexus start
#재 부팅시 자동 재시작 처리(필요시)
chkconfig nexus on
#시작 여부 확인
ps -ef | grep nexus | grep -v grep
netstat -tnlp | grep java
#접속
http://서버주소:8081/nexus
#설정
admin으로 로그인
기본 ID/PW는 admin / admin123 임
Download Remote Indexed를 True로 변경