sonarqube newest version installation
Posted dissipate
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sonarqube newest version installation相关的知识,希望对你有一定的参考价值。
- dnf install java-11-openjdk postgresql-server postgresql postgresql-contrib
- useradd sonar
- unzip sonarqube-VERSION.zip -d /opt
- ln -sv /opt/sonarqube-VERSION /opt/sonarqube
- chown -RL sonar.sonar /opt/sonarqube
- postgresql-setup initdb
- /var/lib/pgsql/data/pg_hba.conf 改为下图所示
- su - postgres
- psql
- create database sonar;
- create user sonar;
- alter user sonar with password ‘sonar‘;
- alter role sonar createdb;
- alter role sonar superuser;
- alter role sonar createrole;
- alter database sonar owner to sonar;
- q
- su - root
- /opt/sonarqube/conf/sonar.properties
sonar.jdbc.username=sonar sonar.jdbc.password=sonar sonar.jdbc.url=jdbc:postgresql://localhost/sonar
- firewall-cmd --zone=public --permanent --add-port=9000/tcp
- firewall-cmd --reload
- /etc/sysctl.conf
vm.max_map_count=262144 fs.file-max=1048576
sysctl --system
- /etc/security/limits.conf
* soft nofile 1048576 * hard nofile 1048576 * soft nproc 4096 * hard nproc 4096
- su - sonar -c ‘/opt/sonarqube/linux-x86-64/bin/sonar.sh start‘
- 用户名和密码均为: admin
以上是关于sonarqube newest version installation的主要内容,如果未能解决你的问题,请参考以下文章