【静态扫描】sonarqube


笔记做个记录,不做步骤说明:

  • wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.8.zip
  • unzip -q sonarqube-7.8.zip -d /data/
  • mv sonarqube-7.8/ sonarqube/
  • useradd sonarqube
  • passwd sonarqube
  • chown -R sonarqube:sonarqube /data/sonarqube
  • su sonarqube
  • vi conf/sonar.properties
sonar.jdbc.username=root
sonar.jdbc.password=A0***
sonar.jdbc.url=jdbc:mysql://10.10.3.89:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.web.port=5000
  • vi /data/sonarqube/elasticsearch/config/elasticsearch.yml
network.host: 0.0.0.0
  • vi /etc/security/limits.conf
*                hard    nofile          65536
*                soft    nofile          65536
root soft nproc 131072
root hard nproc 131072
  • cd bin/linux-x86-64/
  • sh sonar.sh start

访问:
http://10.10.3.88:5000/about