部署服务后,我收到错误的公共地址

部署服务后,我收到错误的公共地址

我部署了 wordpress,当我输入时,juju status我收到以下信息:

公共地址:node-001185e6777fe

当我找到这台计算机的 IP 地址时,我尝试在网络浏览器中输入,但得到 502 错误网关。

符咒状态后:

hsf@ubuntu:~$ juju status
2012-10-05 11:26:49,385 INFO Connecting to environment...
Enter passphrase for key '/home/hsf/.ssh/id_rsa':
2012-10-05 11:26:51,905 INFO Connected to environment.
machines:
  0:
    agent-state: running
    dns-name: node-00127968a7be.local
    instance-id: /MAAS/api/1.0/nodes/node-ab7c5eb6-0e08-11e2-bb37-001185e67955/
    instance-state: unknown
  1:
    agent-state: running
    dns-name: node-001185e677fe
    instance-id: /MAAS/api/1.0/nodes/node-82beae92-0e09-11e2-a134-001185e67955/
    instance-state: unknown
  2:
    agent-state: running
    dns-name: node-001185e6772b.local
    instance-id: /MAAS/api/1.0/nodes/node-5c21dc18-0e0a-11e2-a134-001185e67955/
    instance-state: unknown
services:
  wordpress:
    charm: cs:precise/wordpress-9
    exposed: true
    relations:
      loadbalancer:
      - wordpress
    units:
      wordpress/2:
        agent-state: started
        machine: 1
        open-ports: []
        public-address: node-001185e677fe.localdomain
2012-10-05 11:26:52,459 INFO 'status' command finished successfully
hsf@ubuntu:~$

答案1

根据节点的名称判断,您正在使用 mDNS,因此我建议将节点“node-001185e677fe”重命名为“node-001185e677fe.local”。

相关内容