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 sonar

sudo systemctl start sonar

sudo systemctl status sonar


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

Bash Script to Install Artifactory in Ubuntu 22

JFrog Artifactory OSS 7.21.5 — Install (Bash Script) This script installs Artifactory OSS (no Docker, no Pro, works on Ubuntu 22 EC2). ...