【问题标题】:Cannot access chef-server web interface. (No route to host)无法访问 Chef-server Web 界面。 (没有到主机的路由)
【发布时间】:2014-12-04 10:17:35
【问题描述】:

我在 centos 机器上安装了 chef-server。 一切都按预期工作,只是我无法从本地网络上的另一台机器访问 chef-server Web 界面。

我可以从centos机器本身访问web界面:

telnet mychefserver.local 4000
Connected

如果我在我的机器上做同样的事情,我得到:

telnet: Unable to connect to remote host: No route to host

我可以从我的机器上成功 ping mychefserver.local

知道如何使用 chef-server 配置 nginx 以从网络访问 chef-server?

【问题讨论】:

    标签: nginx chef-infra


    【解决方案1】:

    从 Chef Server 10 开始,Web 界面使用普通的 HTTPS(TCP 443),它只在本地侦听高端口,并根据需要将 nginx 代理到不同的后端服务。我会尝试使用普通的网络浏览器,因为 telnet 在错误消息方面并不十分出色。通常我会认为这意味着 telnet 出现 TCP 传输错误,但也许只是混淆了?如果确实是 TCP 传输错误,则内部 DNS 更有可能出现问题。 .local 常表示 mDNS 在某些地方支持不均衡,我会尝试一个实际的 IP 地址来确定。

    【讨论】:

    • 感谢您的回答。我用IP地址和nc来测试。从我的机器上我得到了nc -v 192.168.1.144 4000 nc: connect to 192.168.1.144 port 4000 (tcp) failed: No route to host,从服务器上我得到了:nc -v 192.168.1.144 4000 Connection to 192.168.1.144 4000 port [tcp/terabase] succeeded!
    • 从服务器使用链接我得到了预期的 Web 界面
    【解决方案2】:

    我的问题是 iptables。 我停止了 iptables,我可以再次从本地网络访问 chef-server。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-12
      相关资源
      最近更新 更多