sonarqube newest version installation

yieryi 2020-07-04

  

  1. dnf install java-11-openjdk postgresql-server postgresql postgresql-contrib
  2. useradd sonar
  3. unzip sonarqube-VERSION.zip -d /opt
  4. ln -sv /opt/sonarqube-VERSION /opt/sonarqube
  5. chown -RL sonar.sonar /opt/sonarqube
  6. postgresql-setup initdb
  7. /var/lib/pgsql/data/pg_hba.conf     改为下图所示
    sonarqube newest version installation

     

  8. su - postgres
  9. psql
  10. create database sonar;
  11. create user sonar;
  12. alter user sonar with password ‘sonar‘;
  13. alter role sonar createdb;
  14. alter role sonar superuser;
  15. alter role sonar createrole;
  16. alter database sonar owner to sonar;
  17. \q
  18. su - root
  19. /opt/sonarqube/conf/sonar.properties
    sonar.jdbc.username=sonar
    sonar.jdbc.password=sonar
    sonar.jdbc.url=jdbc:postgresql://localhost/sonar
  20. firewall-cmd --zone=public --permanent --add-port=9000/tcp
  21. firewall-cmd --reload
  22. /etc/sysctl.conf
    vm.max_map_count=262144
    fs.file-max=1048576

    sysctl --system

  23. /etc/security/limits.conf
    *    soft    nofile    1048576
    *    hard   nofile    1048576
    *    soft    nproc    4096
    *    hard   nproc    4096
  24. su - sonar -c ‘/opt/sonarqube/linux-x86-64/bin/sonar.sh start‘
  25. 用户名和密码均为: admin

相关推荐