2

我已经在我的机器上安装了声纳并启动了服务

我还配置了 sonar.properties 文件,如下所示:

# Listen host/port and context path (for example / or /sonar). Default values are  0.0.0.0:9000/.
#sonar.web.host:                           0.0.0.0
sonar.web.port:                            9300
#sonar.web.context:                        /

但是当我尝试使用“http://xx.xx.xx.xx:9300/sonar”访问应用程序时

HTTP ERROR: 503
Problem accessing /. Reason: 

    SERVICE_UNAVAILABLE


--------------------------------------------------------------------------------
Powered by Jetty:// 

我还复制了 apache tomcat 的 webapps 目录下的 sonar.war 文件,然后当我尝试访问应用程序时出现以下错误

--------------------------------------------------------------------------------   
type     Status report 
message /sonar/ description The requested resource is not available.
-------------------------------------------------------------------------------- 
Apache Tomcat/7.0.30

请有人可以帮我解决这个问题

4

1 回答 1

1

由于您没有在 Web 上下文中指定任何值,因此您应该尝试通过键入“http://xx.xx.xx.xx:9300”而不是“http://xx.xx.xx.xx”来访问 Sonar :9300/声纳"

于 2012-09-25T09:22:52.243 回答