Unable to open remotely installed sonar on a browser

后端 未结 4 1468
醉话见心
醉话见心 2020-12-11 07:27

I have installed sonar on a remote Linux cent OS server. I have configured the database on the same server. When I start the server, I don\'t see any errors in the logs and

4条回答
  •  没有蜡笔的小新
    2020-12-11 07:37

    In your server's sonar.properties file, you'll need to set the host information in order to access the server remotely.

    Specifically, you need to set the following values:

    sonar.web.host: 192.168.1.1 #use your server IP here
    sonar.web.port: 80 #set this if you want a different port than 9000
    

    Also, in the web UI's Settings area, under the "General" section, set the "Server base URL" value so that links in generate emails, etc, point to the right location. This can also be set in your sonar.properties file as sonar.core.serverBaseURL

    Don't forget to restart the Sonar service for the changes to take effect.

提交回复
热议问题