【问题标题】:Access Sonarqube on windows 2019 server from outside/internet从外部/互联网访问 Windows 2019 服务器上的 Sonarqube
【发布时间】:2020-12-19 11:39:56
【问题描述】:

我在托管的虚拟 Windows 2019 服务器上设置了 SonarQube。它通过任务调度程序脚本运行并且始终处于启动状态。 我们创建了一个 dns 记录 sonarqube.domainname.com:8080,就像我们之前为不同的产品(例如 Jenkins)所做的一样。 托管公司已开放 8080 端口,但我仍然无法连接到 SonarQube。

托管公司写道:


防火墙允许并将端口 8080 转发到服务器 - 但是,它似乎只侦听 localhost / loopback 上的端口 8080 - 因此它无法响应来自服务器的流量。

我认为应该将java程序配置为侦听机器IP或所有IP。


我是一名软件开发人员而不是网络专家,老实说,我不明白他们在写什么。

在 sonar.properties 中

# Binding IP address. For servers with more than one IP address, this property specifies which
# address will be used for listening on the specified ports.
# By default, ports will be used on all IP addresses associated with the server.
# sonar.web.host=0.0.0.0
# sonar.web.host=127.0.0.1

# Web context. When set, it must start with forward slash (for example /sonarqube).
# The default value is root context (empty value).
#sonar.web.context=
# TCP port for incoming HTTP connections. Default value is 9000.
#sonar.web.port=9000
sonar.web.port=8080

如果我尝试更换主机

sonar.web.host=

除了 172.0.0.1 SonarQube 不运行。

【问题讨论】:

    标签: sonarqube windows-server-2019


    【解决方案1】:

    我这样做了,现在它可以工作了。就这么简单。

    sonar.web.host=0.0.0.0 // listens on all IP´s for the machince
    sonar.web.port=8080
    

    【讨论】:

      猜你喜欢
      • 2020-09-02
      • 1970-01-01
      • 1970-01-01
      • 2020-10-31
      • 2021-01-26
      • 2018-07-08
      • 1970-01-01
      • 2017-05-28
      • 2015-07-14
      相关资源
      最近更新 更多