![Windows 中的 Sonarqube 7.7 安装](https://linux22.com/image/1589530/Windows%20%E4%B8%AD%E7%9A%84%20Sonarqube%207.7%20%E5%AE%89%E8%A3%85.png)
收到以下错误:
2019.04.25 22:53:05 INFO web[][ospProcessEntryPoint] 正在启动 web 2019.04.25 22:53:05 错误 web[][ossaEmbeddedTomcat] 无法启动 web 服务器 org.apache.catalina.LifecycleException: 无法初始化组件 [StandardServer[-1]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:61) at org.sonar.server.app.WebServer.start(WebServer.java:51) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:113) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:100) at org.sonar.server.app.WebServer.main(WebServer.java:91) 导致的原因:org.apache.catalina.LifecycleException:无法初始化组件 [StandardService[Tomcat]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 省略了 7 个常见框架 导致的原因: org.apache.catalina.LifecycleException:无法初始化连接器 [Connector[HTTP/1.1-9000]] at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 省略了 9 个公共框架 2019.04.25 22:53:05 WARN web[][ospProcessEntryPoint] 无法启动 web java.lang.RuntimeException:org.apache.catalina.LifecycleException:无法初始化组件 [StandardServer[-1]] at com.google.common.base.Throwables.propagate(Throwables.java:160) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65) at org.sonar.server.app.WebServer.start(WebServer.java:51) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:113) at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:100) at org.sonar.server.app.WebServer.main(WebServer.java:91) 导致:org.apache.catalina.LifecycleException:无法初始化组件 [StandardServer[-1]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427) at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:61) ... 省略了 4 个常见框架 原因:org.apache.catalina.LifecycleException:无法初始化组件 [StandardService[Tomcat]] 在 org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) 在 org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875) 在 org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 省略了 7 个常见框架 原因:org.apache.catalina.LifecycleException:无法初始化连接器 [Connector[HTTP/1.1-9000]] at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 省略了 9 个公共框架
答案1
编辑 $SONAR_HOME/conf/sonar.properties 并将以下属性设置为您的真实 IP:sonar.web.host=$YOUR_REAL_IP