Git Product home page Git Product logo

sonarqube-guide's Introduction

sonarqube-installation-guide

Step 1: Install java 17.

yum install java-17-amazon-corretto -y

Step 2: Login as root and execute the following commands.

sysctl -w vm.max_map_count=262144
sysctl fs.file-max
ulimit -n
ulimit -u

Setup PostgreSQL15 Database For SonarQube.

yum install postgresql15 postgresql15-server -y
postgresql-setup --initdb

Need to change config file as shown in below

vi /var/lib/pgsql/data/pg_hba.conf

Replace Method name "ident" to "md5"

image

Enable postgresql:

systemctl enable postgresql

Start postgresql:

systemctl start postgresql

Login into Database

su - postgres
psql

Create a sonarqubedb database, username and provide access to user

create database sonarqubedb;
create user sonarqube with encrypted password 'Naresh#240';
grant all privileges on database sonarqubedb to sonarqube;
\c sonarqubedb;
GRANT ALL ON SCHEMA public TO sonarqube;
GRANT USAGE ON SCHEMA public TO sonarqube;
\q
exit

Setup Sonarqube Web Server.

Download the latest sonarqube installation file to /opt folder. You can get the latest download link from here. http://www.sonarqube.org/downloads/

cd /opt
wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.9.0.65466.zip
unzip sonarqube-9.9.0.65466.zip
mv sonarqube-9.9.0.65466 sonarqube
chown -R ec2-user:ec2-user sonarqube

Open /opt/sonarqube/conf/sonar.properties file

sudo vi /opt/sonarqube/conf/sonar.properties

image image image

Switch to ec2-user and navigate to the start script directory

su - ec2-user
cd /opt/sonarqube/bin/linux-x86-64
./sonar.sh start
./sonar.sh status

Troubleshooting Sonarqube: All the logs of sonarqube are present in the /opt/sonarqube/logs directory

cd /opt/sonarqube/logs

sonarqube-guide's People

Contributors

shrinivaskatti5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.