对 Nitrogen 监听 IP 地址感到困惑
我在 Windows 7 Home Premium、HP Pavilion Entertainment PC 笔记本电脑上运行 Nitrogen 2.0.X。 Nitrogen 以 inets 开头,我无法更改或指定网络服务器的 IP 地址。 一旦启动,它会告诉我转到浏览器并在下面的 shell 输出中点击 http://localhost:8000
:
erl -make Starting Nitrogen on Inets (http://localhost:8000)... Eshell V5.8.4 (abort with ^G)
在几乎所有可用的浏览器中点击链接都会显示找不到该页面。当我询问模拟器有关端口的信息时,这是它的输出:
([email protected])1> inet:i(). Port Module Recv Sent Owner Local Address Foreign Address State 3109 inet6_tcp 0 0 *:8000 *:* ACCEPTING 618 inet_tcp 0 0 *:9543 *:* ACCEPTING 637 inet_tcp 4 19 localhost:9544 localhost:4369 CONNECTED Port Module Recv Sent Owner Local Address Foreign Address State ok ([email protected])2>
我强烈认为 inet6_tcp
意味着它使用 IPv6
而 inet_tcp
意味着IPv4
,对此不太确定。但总而言之,我无法连接到我的氮气。下面是正在运行的应用程序,
([email protected])2> application:which_applications(). [{quickstart,"Nitrogen Quickstart",[]}, {inets,"INETS CXC 138 49","5.6"}, {nprocreg,"NProcReg - Simple Erlang Process Registry.", "0.1"}, {stdlib,"ERTS CXC 138 10","1.17.4"}, {kernel,"ERTS CXC 138 10","2.14.4"}] ([email protected])3>
根据上述观察,有人可以解释为什么我无法通过在浏览器中点击 http://localhost:8000 来访问我的本地氮框架吗?而且,我如何从浏览器连接到它?
Am running Nitrogen 2.0.X on Windows 7 Home Premium, HP Pavilion Entertainment PC Laptop.
Nitrogen starts with inets and i have failed to change or dictate the IP address of the webserver.
Once it starts, it tells me to go to my browser and hit http://localhost:8000
in the shell output below:
erl -make Starting Nitrogen on Inets (http://localhost:8000)... Eshell V5.8.4 (abort with ^G)
Hitting the link in almost all available browsers shows that page could not be found. When i ask the emulator about the ports, this is its output:
([email protected])1> inet:i(). Port Module Recv Sent Owner Local Address Foreign Address State 3109 inet6_tcp 0 0 *:8000 *:* ACCEPTING 618 inet_tcp 0 0 *:9543 *:* ACCEPTING 637 inet_tcp 4 19 localhost:9544 localhost:4369 CONNECTED Port Module Recv Sent Owner Local Address Foreign Address State ok ([email protected])2>
Am having a strong thought that inet6_tcp
means that its using IPv6
while inet_tcp
means IPv4
, not very sure about this. But all in all, i cannot connect to my Nitrogen. These below are the running applications
([email protected])2> application:which_applications(). [{quickstart,"Nitrogen Quickstart",[]}, {inets,"INETS CXC 138 49","5.6"}, {nprocreg,"NProcReg - Simple Erlang Process Registry.", "0.1"}, {stdlib,"ERTS CXC 138 10","1.17.4"}, {kernel,"ERTS CXC 138 10","2.14.4"}] ([email protected])3>
Can someone explain why i cannot Reach my Local Nitrogen Framework by just hitting http://localhost:8000
in the browser, given the observations above? And, how can i connect to it from my browser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些猜测:
您尝试过 http://127.0.0.1:8000 吗?
如果这不起作用,你可以启动带有强制 ip4 支持的 erlang (我认为):
-proto_dist inet_tcp
Some guesses:
Did you try http://127.0.0.1:8000 ?
If that doesn't work, can you startup erlang with forced ip4 support (i think):
-proto_dist inet_tcp