nativeInstallersonarqube

Configure the SonarQube domain name

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

The SonarQube server domain name is the default IP address or domain name assigned when SonarQube is launched. In order to configure a different domain name, follow the steps below:

  • Log in to the SonarQube dashboard and click on the “Administration” tab.
  • Browse to the “Configuration -> General settings -> General” menu.
  • Under the “General” section, change the “Server base URL” to the new server domain name.
  • Save the changes.

You can also manually change the server domain name from the command line by following these steps:

  • Log in to the server console.
  • Use the command below to change the server domain name. Remember to replace the NEW_SERVER_DOMAIN placeholder with the new server domain name.

    • Linux and Mac OS X:

      $ sudo installdir/sonarqube/bnconfig --machine_hostname NEW_SERVER_DOMAIN
      
    • Windows:

      $ installdir\sonarqube\bnconfig.exe --machine_hostname NEW_SERVER_DOMAIN
      
Last modification September 4, 2018