Change the port of SonarQube to 80

I am trying to change the SonarQube port from 9000 to 80. What I did was uncomment sonar.web.port and set it to 80 in the /opt/sonar/conf/sonar.properties file, and then:

 sudo update-rc.d sonar defaults sudo /etc/init.d/sonar restart 

But when I try to hit the URL, nothing appears (no response from the server). If I revert my changes and run the previous two commands again, the SonarQube will not return. I have to reboot the machine.

I am running the latest version of Ubuntu and SonarQube. The database is on SQL Azure. Everything works on port 9000.

My knowledge of SonarQube is limited, so most likely I am doing something wrong, but I can not understand that.

+5
source share
1 answer

On Linux, a port below 1024 can only be bound by the root user. Your SonarQube should be running with a regular user account.

The usual solution for this is to use nginx or apache for proxies from port 80 to 9000.

+8
source

Source: https://habr.com/ru/post/1238060/


All Articles