How to Install SonarQube on CentOS 8


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-
sudo unzip sonarqube-
sudo rm sonarqube-
sudo vi /opt/sonarqube-

Update the following properties:

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- start

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

sudo /opt/sonarqube- 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.