【问题标题】:TeamCity available only from local. No Firewall. Why isn't it available remotely?TeamCity 只能从本地获得。没有防火墙。为什么不能远程使用?
【发布时间】:2015-06-02 12:09:19
【问题描述】:

所以我按照guide 在 Amazon EC2 安装上安装了 TeamCity。一切正常。

当使用 Lynx 到 http://localhost:8111 时,它可以工作。 证明: 团队城市

TeamCity Maintenance

   Confirming TeamCity first start
   Please enable JavaScript in your browser to access TeamCity.
   TeamCity 8.0.5 (build 27692)

lsof -i 输出:

java     13224     root   38u  IPv6 1346958      0t0  TCP *:8111 (LISTEN)

iptables -L 接受一切。

另外,阅读日志,我明白了:

[2015-06-02 12:23:47,595]   WARN -  jetbrains.buildServer.STARTUP - Could not determine the local IP address: ip-10-0-81-70: ip-10-0-81-70: Name or service not known 

所以我尝试在 server.xml 中添加 IP:

<Connector port="8111" address="public.ip.ad.ress"  protocol="org.apache.coyote.http11.Http11NioProtocol">

开始和停止。还是同样的问题,无法从publicip:8111访问。

这个tutorial 似乎说我什至不需要这样做:

我在哪里失败了?

【问题讨论】:

  • 只是为了测试,我 yum -y install httpd 并启动它。我无法通过 ip 访问它。我想我需要使用 DNS 名称而不是 IP。谁能证实这一点?
  • 还是不行..谁能帮忙?

标签: amazon-ec2 teamcity remote-access


【解决方案1】:

我正在使用 AWS,他们的安全规则充当防火墙。 刚刚添加了一条规则以允许来自端口 8111 和 80 的流量,现在它可以工作了!

【讨论】:

    猜你喜欢
    • 2013-05-31
    • 1970-01-01
    • 1970-01-01
    • 2020-07-03
    • 1970-01-01
    • 2019-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多