본문 바로가기

공부/기타

[APM툴] Pinpoint 설치하기

Pinpoint

설치

1. 자바 환경변수 설정

JAVA_6_HOME : /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
JAVA_7_HOME : /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
JAVA_8_HOME : /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
JAVA_9_HOME : /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home

환경 변수 수정

vi ~/.bash_profile

환경 변수 추가

# JAVA
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
export JAVA_6_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export JAVA_7_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
export JAVA_9_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home

export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:$JAVA_6_HOME/bin
export PATH=$PATH:$JAVA_7_HOME/bin
export PATH=$PATH:$JAVA_8_HOME/bin
export PATH=$PATH:$JAVA_9_HOME/bin

환경 변수 적용

source ~/.bash_profile

2. 메이븐 설치 (3.2.x 이상 버전 설치)

brew install maven

설치 경로 : /usr/local/Cellar/maven/3.6.1/bin

3. pinpoint 설치

git clone https://github.com/naver/pinpoint.git
cd pinpoint
mvn install -Dmaven.test.skip=true

4. pinpoint 데모 시작

4.1. Apache HBase 시작
./quickstart/bin/start-hbase.sh # 다운로드 및 서비스 구동
./quickstart/bin/init-hbase.sh # 테이블 생성
4.2. pinpoint 시작
cd /Users/soon/git/pinpoint/quickstart/bin

# Collector - start
./start-collector.sh

# TestApp - start
./start-testapp.sh

# Web UI - start
./Run quickstart/bin/start-web.sh
4.3. 접속

Web UI - http://localhost:28080
TestApp - http://localhost:28081