일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Gradle
- 엘라스틱서치
- Elk
- mybatis
- nodejs
- SonarQube
- heap메모리
- Java
- orm
- Bitbucket
- Git
- 리눅스
- 자바
- npm
- 시스템운영
- mysql
- ElasticSearch
- 마이바티스
- Apach
- sql
- 스프링
- JVM
- DB
- 아파치
- Stash
- 레드마인
- springboot
- 트랜잭션
- spring
- slave node
- Today
- Total
프로그래머호이잇
SonarQube 설치 방법 본문
--default-storage-engine=InnoDB
CREATE DATABASE sonar2 CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'sonar' IDENTIFIED BY 'thskqbzm1';
GRANT ALL ON sonar2.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar2.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
FLUSH PRIVILEGES;
권한 확인
show grants for 'sonar'@'%';
https://github.com/SonarQubeCommunity/sonar-l10n-ko/releases/download/1.2.0/sonar-l10n-ko-plugin-1.2.0.jar
sonarqube 프로퍼티 파일을 수정한다.
$cd /opt/sonarqube-5.1/conf
$vi sonar.properties
#이거 두개 주석을 푼다.
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
#이거 주석을 푼다.
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
#이거 두개 추가해 준다.
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
sonar.jdbc.validationQuery=select 1
http://localhost:9000/sonar 로 접속할 수 있다.
sonar.web.host=127.0.0.1
sonar.web.context=/sonar
sonar.web.port=9000
실행
$cd /opt/sonarqube-5.1/bin
$cd linux-x86-64
$./sonar.sh start
Starting SonarQube...
Started SonarQube.
'시스템운영' 카테고리의 다른 글
아파치 모든 요청 redirect 방법 (0) | 2017.08.22 |
---|---|
SonarQube 분석 방법 (0) | 2017.08.22 |
Gradle 설치 방법 리눅스 (0) | 2017.08.22 |
sudo 권한 추가 방법 (0) | 2017.08.22 |
yum 실행시 No module named yum (0) | 2017.08.22 |