【发布时间】:2015-06-07 18:13:08
【问题描述】:
我最近实例化了在 VMware Player 上找到 HERE 的 Orion 映像。更新到 0.22 版本后,我可以确认它已启动并运行,并在 VM 中使用 curl:
[root@centimeter ~]# curl -XGET localhost:1026/version
<orion>
<version>0.22.0</version>
<uptime>0 d, 0 h, 5 m, 54 s</uptime>
<git_hash>06bc8fd55ee37567a3754422e78e732c8fd69da8</git_hash>
<compil_time>Mon May 25 13:25:10 CEST 2015</compile_time>
<compiled_by>fermin</compiled_by>
<compiled_in>centollo</compiled_in>
</orion>
但是,如果我从主机运行此检查(到访客 VM 的 IP 或正确设置端口转发),我会得到:
GET http://192.168.0.104:1026/version
{
message: "Access forbidden"
}
我错过了什么?
我尝试从 VM 本身卷曲到相同的 IP,但出现相同的错误。我已经设置了安全规则并尝试使用 CentOS iptables,但没有任何效果。我可以从主机 comp ping 虚拟机的 IP。
我最好的猜测是它与最近实施的 CORS 有关。有什么帮助吗?
谢谢, 杜尚
【问题讨论】:
-
谢谢费尔明。正如您在回复中建议的那样,这是一个网络问题。起初,当我从映像实例化 VM 时,我的网络出现故障。我发现 eth0 的名字不同,所以我通过这样的答案解决了这个问题:cyberciti.biz/tips/…。但是,似乎我的环回接口仍然关闭。简单的
ifup lo解决了一切。谢谢! -
很高兴知道你已经解决了:)
标签: fiware fiware-orion vmware-player