• SonaQube安装


    SonaQube简介

    SonarQube 是一个用于管理代码质量的开放平台,可以快速的定位代码中潜在的或者明显的错误。目前
    支持java,C#,C/C++,Python,PL/SQL,Cobol,JavaScrip,Groovy等二十几种编程语言的代码质量管理与检
    测。
    官网: https://www.sonarqube.org/

    下载 sonar压缩包:
    https://www.sonarqube.org/downloads/
    解压sonar,并设置权限

    [root@hadoop001 module]# unzip sonarqube-6.7.4.zip
    Archive:  sonarqube-6.7.4.zip
       creating: sonarqube-6.7.4/
       creating: sonarqube-6.7.4/lib/
       creating: sonarqube-6.7.4/lib/common/
       creating: sonarqube-6.7.4/bin/
       creating: sonarqube-6.7.4/bin/macosx-universal-64/
    [root@hadoop001 module]# cd sonarqube-6.7.4/
    [root@hadoop001 sonarqube-6.7.4]# ll
    total 44
    drwxr-xr-x 8 root root 4096 May 30  2018 bin
    drwxr-xr-x 2 root root 4096 May 30  2018 conf
    -rw-r--r-- 1 root root 7651 May 30  2018 COPYING
    drwxr-xr-x 2 root root 4096 May 30  2018 data
    drwxr-xr-x 7 root root 4096 May 30  2018 elasticsearch
    drwxr-xr-x 4 root root 4096 May 30  2018 extensions
    drwxr-xr-x 9 root root 4096 May 30  2018 lib
    drwxr-xr-x 2 root root 4096 May 30  2018 logs
    drwxr-xr-x 2 root root 4096 May 30  2018 temp
    drwxr-xr-x 9 root root 4096 May 30  2018 web
    [root@hadoop001 sonarqube-6.7.4]# useradd sonar
    [root@hadoop001 sonarqube-6.7.4]# chown -R sonar. /opt/module/sonarqube-6.7.4/
    [root@hadoop001 sonarqube-6.7.4]# cd conf/
    [root@hadoop001 conf]# ll
    total 24
    -rw-r--r-- 1 sonar sonar 17786 May 30  2018 sonar.properties
    -rw-r--r-- 1 sonar sonar  3311 May 30  2018 wrapper.conf
    [root@hadoop001 conf]# vim sonar.properties
    [root@hadoop001 conf]# cd ..
    [root@hadoop001 sonarqube-6.7.4]# ll
    total 44
    drwxr-xr-x 8 sonar sonar 4096 May 30  2018 bin
    drwxr-xr-x 2 sonar sonar 4096 Jan 23 09:36 conf
    -rw-r--r-- 1 sonar sonar 7651 May 30  2018 COPYING
    drwxr-xr-x 2 sonar sonar 4096 May 30  2018 data
    drwxr-xr-x 7 sonar sonar 4096 May 30  2018 elasticsearch
    drwxr-xr-x 4 sonar sonar 4096 May 30  2018 extensions
    drwxr-xr-x 9 sonar sonar 4096 May 30  2018 lib
    drwxr-xr-x 2 sonar sonar 4096 May 30  2018 logs
    drwxr-xr-x 2 sonar sonar 4096 May 30  2018 temp
    drwxr-xr-x 9 sonar sonar 4096 May 30  2018 web
    [root@hadoop001 sonarqube-6.7.4]# su sonar ./bin/linux-x86-64/sonar.sh start

     在启动的时候,会报es的错,所以到时排查一下就好了

    [root@hadoop001 sonarqube-6.7.4]# su sonar ./bin/linux-x86-64/sonar.sh status
    SonarQube is running (16588).
    [root@hadoop001 sonarqube-6.7.4]#

     这个token要记下来,后面会和Jenkins整合

    66368947a95e2b91f048df6c21dc6c715e6526e0

  • 相关阅读:
    matcaffe的blob维度顺序
    ftp同步代码
    SpringCloud的微服务网关:zuul(实践)
    SpringCloud的微服务网关:zuul(理论)
    SpringCloud的服务消费者 (二):(rest+feign/ribbon)声明式访问注册的微服务
    SpringCloud的服务消费者 (一):(rest+ribbon)访问注册的微服务
    SpringCloud的服务注册中心(二)注册中心服务端和两个微服务应用客户端
    Jetty入门(1-3)Eclipse集成gradle-Gretty插件或maven-jetty插件运行应用
    HTTP协议扫盲(三)HTTP协议的请求头列表和分类描述
    Jetty入门(1-2)eclipse集成jetty插件并发布运行应用
  • 原文地址:https://www.cnblogs.com/dalianpai/p/12230256.html
Copyright © 2020-2023  润新知