Thursday, 10 September 2020

How to Change Default port in SonarQube

 

The default port number for SonarQube is 9000. It can be changed though by modifying the below properties file.

$ sudo vi 
/opt/sonarqube/conf/sonar.properties


Let's say you want to change from default port 9000 to 9095. you need to make changes in the above file and restart the service.

sonar.web.port=9095

once you modify, you need to restart SonarQube service to take effect.

sudo systemctl stop sonarqube

sudo systemctl start sonarqube

sudo systemctl status sonarqube


IF YOU ARE USING THE LATEST VERSION OF SONARQUBE THE ABOVE COMMANDS MAY FAIL USE BELOW COMMAND

sudo systemctl stop sonarqube

Now you can access SonarQube in the new port 9095.

Note: Make sure you open the new port no in security firewall rules

No comments:

Post a Comment

Understanding Software Testing Using a Simple JSP Web App

  🎯 Lab Context (Very Important) This project is a basic Maven web application created for learning DevOps concepts. It displays a sim...