We need to have a sonar user and database for the sonar application. sudo -u postgres /usr/pgsql-10/bin/psql -c "SELECT version() " Setup Sonar User and Database Step 6: You can verify the installation using the following version select query. Once changed, it should look like the following. # "local" is for Unix domain socket connections only sudo vi /var/lib/pgsql/10/data/pg_hba.confįind the following lines at the bottom of the file and change peer to trust and idnet to md5 # TYPE DATABASE USER ADDRESS METHOD Step 4: Open /var/lib/pgsql/data/pg_hba.conf file to change the authentication to md5. sudo /usr/pgsql-10/bin/postgresql-10-setup initdb
#Sonar 8.5 reference guide install#
Step 2: Install PostgreSQL 10 sudo yum install postgresql10-server postgresql10-contrib -y Ulimit -u Setup PostgreSQL 10 Database For SonarQube Step 4: Login as root and execute the following commands. Step 3: Install java 11 sudo yum install java-11-openjdk-devel -y Step 2: Install wget & unzip sudo yum install wget unzip -y Update: MySQL for Sonarqube is depricated Prep the Server With Required Softwares You can find the official requirement doc here. All sonarquber process should run as a non-root sonar user.Server with minimum 2GB/1 vcpu capacity.Follow the steps given below for the complete sonarqube configuration. This guide will help you to set up and configure sonarqube on Linux servers ( Redhat/Centos 7 versions) on any cloud platforms like ec2, azure, compute engine or on-premise data centers. This is the most widely used tool for code coverage and analysis. Sonarqube is a great tool for source code quality management, code analysis etc.