【问题标题】:change server url from localhost从 localhost 更改服务器 url
【发布时间】:2016-06-06 23:01:07
【问题描述】:

我在 mac os 上安装了 teamcity 9.1。我可以通过http://localhost:8111/ 访问teamcity。我可以通过更改<Connector port="8111" protocol="org.apache.coyote.http11.Http11NioProtocol" 来更改文件TeamCity/conf/server.xml 中的端口。

但是我怎样才能更改服务器网址,例如http://localhost:8111/ 到 http://teamcity.test:8111/

我尝试从<Engine name="Catalina" defaultHost="localhost"> 更改server.xml

但是在我以./runAll.sh start 启动teamcity 后,它仍然可以从http://localhost:8111/ 访问,但不能从http://teamcity.test:8111/ 访问

【问题讨论】:

    标签: teamcity teamcity-9.0


    【解决方案1】:

    尝试从 Teamcity 用户界面进行更改。转到管理 -> 全局设置并更新服务器 URL 属性。

    【讨论】:

      【解决方案2】:

      为了使服务器可以通过其他 url/域名访问,您需要更新 DNS 条目以使地址解析为新服务器的 IP 地址,并且在所有缓存的 DNS 结果过期后,所有客户端将自动使用新服务器。另请注意,更改 URL 后,您需要:

      1. 将代理切换到新 URL(需要更新每个代理上 buildAgent.properties 中的 serverUrl 属性)。
        1. 新服务器启动时,不要忘记在服务器配置管理页面上更新Server URL。

      【讨论】:

        猜你喜欢
        • 2018-12-04
        • 1970-01-01
        • 2020-06-21
        • 2021-02-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-05-11
        • 2013-04-17
        相关资源
        最近更新 更多