由于种种原因,需要配置SonarQuber9社区版配置中心,记录下配置搭建过程
本次部署环境:win10+SonatQube9.9+opjdk17
1.软件下载
SonarQube9.9社区版
https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.9.0.65466.zip
openjdk选择国内清华开源地址下载
https://mirrors.tuna.tsinghua.edu.cn/Adoptium/17/jdk/x64/windows/
数据库选择PostgreSQL15(9版本不再支持Mysql...)
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
全部安装完毕后,配置SonarQube配置文件,打开sonar.properties,在conf目录下
配置PostgreSQL 部分
#----- PostgreSQL 11 or greater
# By default the schema named "public" is used. It can be overridden with the parameter "currentSchema".
sonar.jdbc.url=jdbc:postgresql://192.168.99.128/sonar?currentSchema=sonar
sonar.jdbc.username=postgres
sonar.jdbc.password=
因为我是在win下,所以进入onarqube-9.9.0.65466\bin\windows-x86-64下,直接双击StartSonar.bat执行,就弹出cmd执行框,出现下面表示启动成功

可以使用浏览器登陆 localhost:9000查看。
安装中遇到的问题:
安装PostgreSQL15出现创建数据库失败
解决:权限问题,切换管理员账号进行安装解决。