Loading...

How to Install SonarQube on CentOS 8

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing SonarQube on CentOS 8

SonarQube is an open-source platform that provides continuous inspection of your source code to detect bugs, vulnerabilities, and code smells in real-time. It helps to ensure that your code quality meets industry standards and improves overall software development efficiency.

Here are the steps to install SonarQube on CentOS 8:

sudo dnf update -y
sudo dnf install -y wget unzip java-11-openjdk
cd /opt
sudo wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.1.1.47736.zip
sudo unzip sonarqube-9.1.1.47736.zip
sudo rm sonarqube-9.1.1.47736.zip
sudo vi /opt/sonarqube-9.1.1.47736/conf/sonar.properties

Update the following properties:

sonar.jdbc.username=sonarqube
sonar.jdbc.password=strongpassword
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
sudo dnf install -y postgresql-server
sudo systemctl enable --now postgresql
sudo -u postgres psql -c "create database sonarqube"
sudo -u postgres psql -c "create user sonarqube with encrypted password 'strongpassword'"
sudo -u postgres psql -c "grant all privileges on database sonarqube to sonarqube"
sudo /opt/sonarqube-9.1.1.47736/bin/linux-x86-64/sonar.sh start
http://localhost:9000

By default, SonarQube runs on port 9000. You can access it using your server's IP address or domain name.

sudo /opt/sonarqube-9.1.1.47736/bin/linux-x86-64/sonar.sh stop
  1. Update the system packages:
  2. Install the required dependencies:
  3. Download SonarQube:
  4. Unzip the downloaded file:
  5. Remove the downloaded zip file:
  6. Configure SonarQube:
  7. Install and configure PostgreSQL (if not already done):
  8. Start SonarQube:
  9. Access SonarQube using your browser:
  10. Stop SonarQube (if needed):

That's it! You have successfully installed SonarQube on CentOS 8. Now, you can analyze your code by configuring SonarQube projects and executing code scans.

Refer A Friend
Get $25

Installing SonarQube
SonarQube installation
CentOS 8 SonarQube installation
installing SonarQube on CentOS 8
SonarQube setup CentOS 8
SonarQube installation guide
SonarQube installation steps
CentOS 8 SonarQube setup
SonarQube installation tutorial
SonarQube on CentOS 8 installation.

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.