Unzip the archeve setup to /opt directory
#Install sonarr uybuntu how to
Switch back to the sudo user by running the exit command.Įxit Step #3: How to Install SonarQube on Ubuntu 20.04 LTSĭownload sonaqube installer files archieve To download latest version of visit SonarQube download page. Grant all privileges on DATABASE sonarqube to sonar Grant all privileges to sonar user on sonarqube Database. Set a password for the newly created user for SonarQube database.ĪLTER USER sonar WITH ENCRYPTED password 'sonar' Ĭreate a new database for PostgreSQL database by running: Sudo apt-get -y install postgresql postgresql-contribĮnable it to start automatically at boot time.Ĭhange the password for the default PostgreSQL user.
Install the PostgreSQL database Server by using following command,
Sudo sh -c 'echo "deb `lsb_release -cs`-pgdg main" > /etc/apt//pgdg.list' wget -q -O - | sudo apt-key add. OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing) Step #2: Install and Setup PostgreSQL 10 Database For SonarQube OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
#Install sonarr uybuntu manual
* 3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual modeĬheck JAVA Version: java -version Output: java -version You will see below choices for the alternative java (providing /usr/bin/java).Ġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto modeġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual modeĢ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode To set default JDK or switch to OpenJDK enter below command,
Sudo apt-get install openjdk-11-jre -y SET Default JDK Install OpenJDK and JRE 11 using following command, Sudo apt-get install wget unzip -y Step #1: Install OpenJDK
#Install sonarr uybuntu update
Sonarqube - nproc 4096 OR If you are using systemd to manage the sonarqube services then add below value in sonarqube unit file under section.īefore installing, Lets update and upgrade System Packages etc/security/nf sonarqube - nofile 65536 Open the below config file and Insert the below value as shown below, To Increase the vm.max_map_count kernal ,file discriptor and ulimit permanently. Sudo sysctl -w vm.max_map_count=262144 sudo sysctl -w fs.file-max=65536 ulimit -n 65536 ulimit -u 4096 Increase the vm.max_map_count kernal ,file discriptor and ulimit for current session at runtime. To know Prerequisite visit sonarqube official page Note: MySQL Support for SonarQube is depricated. Here, We are installing SonarQube 8.9 version and have to install Oracle JAVA/Open JDK, Postgres/MS-SQL as database and Latest browser before installing SonarQube.