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
相关推荐
sakurayz 2020-06-16
yuanyuan 2020-06-14
yuanyuan 2020-06-14
hevenue 2020-06-04
yieryi 2020-06-02
yuanyuan 2020-05-17
huaqiangli 2020-05-14
yangliuhbhd 2020-05-11
一片荷叶 2020-05-09
静水楼台 2020-05-09
huaqiangli 2020-04-27
yieryi 2020-04-10
郭宇 2020-02-14
xiaodaiwang 2020-02-02
xiaodaiwang 2020-01-09
leonranri 2019-12-16
xiaodaiwang 2019-11-02
chwnpp 2018-01-05
冯冯领队 2019-10-27
sakurayz 2019-10-24
arnodzl 2019-07-31
sakurayz 2019-04-05
BigBirds 2019-09-12
huaqiangli 2019-08-05
wesaylove 2017-06-19
静水楼台 2019-07-24
mydownloador 2019-07-24
BORISHOU 2019-07-23
yuanyuan 2016-11-25
sakurayz 2015-07-25
骑苍蝇过大海 2015-06-19
BigBirds 2019-06-28
sakurayz 2019-06-28