gitlab+Runners+sonarQube(CICD)
-
安装sonarQube
提示:sonarQube需MySQL打通
[root@15b09cc997f1 test]# unzip sonarqube-7.6.zip
[root@15b09cc997f1 /]# useradd sonar
#创建系统用户
[root@15b09cc997f1 /]# chown -R sonar.sonar /data/sonarqube
CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
#MySQL使用5.7版本(高版本不支持)
[root@15b09cc997f1 /]# cd /usr/local/sonarqube/conf/
16 sonar.jdbc.username=root
17 sonar.jdbc.password=1234.Com
26 sonar.jdbc.url=jdbc:mysql://192.126.30.3:3306/sonar?useUnicode=true&characte rEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSS L=false
[root@15b09cc997f1 conf]# su - sonar -c “/usr/local/sonarqube/bin/linux-x86-64/sonar.sh start”
#启动该服务
测试链接:http://192.126.30.2:9000
用户密码默认:admin admin