1. Java 11 버전 환경 세팅
2. 소나큐브 다운로드 : https://www.sonarqube.org/downloads/
내가 선택한 버전은 : 8.9 LTS
요구 환경 : https://docs.sonarqube.org/8.9/requirements/requirements/
3. sonar.properties 설정 활성화 및 수정 (이부분을 안해줘서 그런지 계속 에러 발생 했었음)
sonar.web.host=127.0.0.1
sonar.web.port=9000
sonar.path.data=data
sonar.path.temp=temp
4. 서비스 등록
sc.exe create SonarQube binPath="C:\sonarqube-8.9.3.48735\sonarqube-8.9.3.48735\bin\windows-x86-64\wrapper.exe -s C:\sonarqube-8.9.3.48735\sonarqube-8.9.3.48735\conf\wrapper.conf
5. 관리자 권한으로 파일 실행
C:\sonarqube-8.9.3.48735\sonarqube-8.9.3.48735\bin\windows-x86-6\
StartNTService.bat -> StartSonar.bat
6. 설정한 IP 및 Port인 127.0.0.1:9000 접속
7. admin/admin 로그인
1. 프로젝트 생성
프로젝트 생성 시 토큰과 실행해야될 명령어는 별도로 메모해 두기
other 언어 진단 시, Sonar Scanner 설치하여 사용해야함
2. Sonar Scanner 설치
설치 후 프로젝트 생성 시 알려준 실행해야될 명령어를 입력하여 Sonar Scanner 실행
3. 스캐너 실행이 완료되면 SonarQube에서 결과 리포트 확인 가능
'보안 및 개발 > ETC...' 카테고리의 다른 글
[Git] SSL certificate problem: self-signed certificate in certificate chain 에러 (0) | 2024.02.01 |
---|---|
OWASP Juice shop & CTFd 환경 구성 (0) | 2020.03.17 |
Ethereum smart contracter (0) | 2019.10.07 |
git branch 사용하기 (0) | 2019.10.07 |