【发布时间】: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