使用IIS而不是localhost:9000

时间:2017-03-08 10:02:30

标签: c# asp.net winforms iis sonarqube

目前我正在尝试在我的项目中使用sonarqube进行代码分析,并且它的工作正常,sonarqube网页显示在localhost:9000中,我得到了我想要的结果。但现在我的问题是,如何在IIS而不是本地网络服务器上启动sonarqube网页,以便可以从其他系统访问网页。

我阅读了很多文章,但没有人提到过如何在IIS网络服务器而不是本地网站上启动sonarqube网页:9000。

是否有要安装的插件或要更改的配置文件?

为了保持简单,当我运行sonarqube start.bat时,声纳网页必须在IIS网络服务器而不是locahost上启动:9000

这是我的webserver 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

# 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

2 个答案:

答案 0 :(得分:1)

SonarQube不会“运行”。在IIS上。您可以将IIS配置为它的反向代理,但这不一样。

您可以安装SonarQube作为服务运行,该服务将在机器启动时自动启动,并可通过其端口9000上的地址从其他计算机访问。可以使用您喜欢的任何可用端口的设置进行配置。

有关反向代理设置,请参阅here

或者在计算机上安装Sonar作为服务,添加sonar.mycompany.com.au的dns条目。要访问结果,请访问sonar.mycompany.com.au:9000。这非常有效。你不需要IIS配对,只需使用声纳web服务器启动机器启动 - 它将作为Windows服务安装。如果要在该计算机上禁用IIS,甚至可以将其设置为使用端口80。您需要做的一件事是使用除了它附带的数据库之外的数据库设置声纳 - 这仅用于演示目的。

答案 1 :(得分:0)

关于Securing the Server Behind a Proxy的SonarQube文档有关于IIS的专门说明,它直接链接到this helpful blog post

相关问题