AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install sonarr ubuntu 148/19/2023 opt/sonarqube/bin/linux-x86-64/sonar.sh # If specified, the Wrapper will be run as the specified user. =sonar =sonar =jdbc:postgresql://localhost:5432/sonarqubeĮdit the sonar script file and set RUN_AS_USER sudo nano /opt/sonarqube/bin/linux-x86-64/sonar.sh # Permissions to create tables, indices and triggers must be granted to JDBC user. ![]() # - Changes to database connection URL () can affect SonarSource licensed products. Supported databases are Oracle, PostgreSQL and Microsoft SQLServer. # - The embedded H2 database is used by default. Uncomment and Type the PostgreSQL Database username and password which we have created in above steps and add the postgres connection string. sudo nano /opt/sonarqube/conf/sonar.propertiesįind the following lines. Open the SonarQube configuration file using your favorite text editor. Now add the user with directory access sudo useradd -c "user to run SonarQube" -d /opt/sonarqube -g sonar sonar Create Group and User:Ĭreate a group as sonar sudo groupadd sonar We have found solution on this to create separate group and user to run sonarqube. We can’t run Sonarqube as a root user, if you run using root user it stops automatically. Move extracted setup to /opt/sonarqube directory sudo mv /opt/sonarqube-9.6 /opt/sonarqube Step #4:Configure SonarQube on Ubuntu 22.04 LTS Unzip the archeve setup to /opt directory sudo unzip sonarqube-9.6.zip -d /opt exit Step #3: How to Install SonarQube on Ubuntu 22.04 LTSĭownload sonaqube installer files archive To download latest version of visit SonarQube download page. Switch back to the sudo user by running the exit command. grant all privileges on DATABASE sonarqube to sonar Grant all privileges to sonar user on sonarqube Database. ALTER USER sonar WITH ENCRYPTED password 'sonar' Ĭreate a new database for PostgreSQL database by running: CREATE DATABASE sonarqube OWNER sonar Set a password for the newly created user for SonarQube database. su - postgresĬreate a new user by typing: createuser sonar sudo systemctl enable postgresqlĬhange the password for the default PostgreSQL user. Start PostgreSQL Database server sudo systemctl start postgresqlĮnable it to start automatically at boot time. Install the PostgreSQL database Server by using following command, sudo apt-get -y install postgresql postgresql-contrib OpenJDK 64-Bit Server VM (build 17.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing) Step #2: Install and Setup PostgreSQL 10 Database For SonarQubeĪdd and download the PostgreSQL Repo sudo sh -c 'echo "deb `lsb_release -cs`-pgdg main" > /etc/apt//pgdg.list' OpenJDK Runtime Environment (build 17.0.7+10-post-Ubuntu-3ubuntu1) * 3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode Selection Path Priority StatusĠ /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 You will see below choices for the alternative java (providing /usr/bin/java). ![]() To set default JDK or switch to OpenJDK enter below command, sudo update-alternatives -config java Sudo apt-get install openjdk-17-jre -y SET Default JDK Install OpenJDK and JRE 11 using following command, sudo apt-get install openjdk-17-jdk -y Install wget and unzip package sudo apt-get install wget unzip -y Step #1: Install OpenJDK ![]() īefore installing, Lets update and upgrade System Packages sudo apt-get update OR If you are using systemd to manage the sonarqube services then add below value in sonarqube unit file under section. etc/security/nf sonarqube - nofile 65536 Open the below config file and Insert the below value as shown below, sudo nano /etc/security/nf To Increase the vm.max_map_count kernal ,file discriptor and ulimit permanently. Increase the vm.max_map_count kernal ,file discriptor and ulimit for current session at runtime. Note: MySQL Support for SonarQube is depricated. To know Prerequisite visit sonarqube official page 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.
0 Comments
Read More
Leave a Reply. |