Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Erlang 对IP地址感到困惑_Erlang_Mnesia_Mochiweb_Yaws_Nitrogen - Fatal编程技术网

Erlang 对IP地址感到困惑

Erlang 对IP地址感到困惑,erlang,mnesia,mochiweb,yaws,nitrogen,Erlang,Mnesia,Mochiweb,Yaws,Nitrogen,我在Windows 7 Home Premium、HP Pavilion Entertainment PC笔记本电脑上运行氮气2.0.X。 氮气从iNet开始,我无法更改或指定Web服务器的IP地址。 一旦启动,它会告诉我转到浏览器并点击http://localhost:8000在下面的shell输出中: erl -make Starting Nitrogen on Inets (http://localhost:8000)... Eshell V5.8.4 (abort with ^G) 有

我在Windows 7 Home Premium、HP Pavilion Entertainment PC笔记本电脑上运行氮气2.0.X。 氮气从iNet开始,我无法更改或指定Web服务器的IP地址。 一旦启动,它会告诉我转到浏览器并点击
http://localhost:8000
在下面的shell输出中:

erl -make Starting Nitrogen on Inets (http://localhost:8000)... Eshell V5.8.4 (abort with ^G) 有人能解释一下为什么我不能通过点击
http://localhost:8000
在浏览器中,根据上述观察结果?还有,如何从浏览器连接到它?

一些猜测:

你试过了吗

如果这不起作用,您能否使用强制ip4支持启动erlang(我认为):


-proto\u dist inet\u tcp

本地地址
*:8000
上仍显示
inet6\u tcp
模块指示,在调用
inet:i()的结果中接受。
另一种可能的解决方案是在windows 7中禁用ip6。在找到合适的解决方案之前,这是一个丑陋的解决办法。谢谢@WardB,让我试试 (motv@josh.ekampus.internal)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 (motv@josh.ekampus.internal)2> (motv@josh.ekampus.internal)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"}] (motv@josh.ekampus.internal)3>