Content Introduction Prerequisites Virtual Host Redirect to HTTPS Conclusion Introduction To secure the data transfer redirecting the HTTP traffic to...
Read MoreSonarQube inspects the quality of code of applications and it is an open-source platform that supports multiple databases. We can check the health status of an application for multiple languages like C, C++, Java, PHP, C#, and many web languages including HTML, CSS, and JavaScript.
SonarQube can easily be integrated with Gradle, Ant, Maven, Active directory, Github, and LDAP and can detect bugs that display results on the dashboard.
In this tutorial, you will learn to install and configure SonarQube on Ubuntu 18.04 server.
Note: SonarQube has stopped supporting MySQL from release 7.9 and started supporting PgSQL.
sudo apt-get update -y
sudo adduser --system --no-create-home --group --disabled-login sonar
sudo mkdir /opt/sonar
cd /opt/sonar
sudo wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.7.zip
sudo unzip sonarqube-6.7.7.zip
sudo chown -R sonar:sonar /opt/sonarqube
sudo nano /opt/sonarqube/bin/linux-x86-64/sonar.sh
RUN_AS_USER=sonar
psql
ALTER USER sonar WITH ENCRYPTED password 'password';
CREATE DATABASE sonar OWNER sonar;
\q
sudo nano /opt/sonarqube/conf/sonar.properties
sonar.jdbc.username=sonar
sonar.jdbc.password=password
sonar.jdbc.url=jdbc:postgresql://localhost/sonar
sonar.web.host=127.0.0.1
sonar.search.javaOpts=-Xms512m -Xmx512m
Save and Close the file to apply the changes!
sudo nano /etc/systemd/system/sonar.service
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonar/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonar/bin/linux-x86-64/sonar.sh stop
User=sonar
Group=sonar
Restart=alway
[Install]
WantedBy=multi-user.target
sudo systemctl start sonar
sudo systemctl enable sonar
Note: The default port for the SonarQube is 9000
http://:9000
Note: The default credentials for SonarQube are “admin/admin”
The SonarQube is now successfully installed and configure.
Thanks!
By following the steps mentioned in above article you can easily install and conconfigure SonarQube on Ubuntu 18.04.
Content Introduction Prerequisites Virtual Host Redirect to HTTPS Conclusion Introduction To secure the data transfer redirecting the HTTP traffic to...
Read MoreContent Introduction Requirement Getting Started Conclusion Introduction Angular is an open-source web application framework. It is a TypeScript-based free and development...
Read More