[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8888 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
当虚拟机启动时,我会在8000端口上启动Django开发服务器。
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
好的,我可以将其放在后台,并且甚至可以使用curl localhost:8000
从服务器获取一些输出。
<div id="explanation">
<p>
You're seeing this message because you have <code>DEBUG = True</code> in your
Django settings file and you haven't configured any URLs. Get to work!
</p>
</div>
但是当我尝试使用Firefox/Chrome/Telnet从我的主机向服务器发起请求时,会出现连接重置/连接丢失/ERR_CONNECTION_RESET等问题。
起初我以为可能是iptables的问题,但事实证明Ubuntu默认允许所有连接。我也关闭了主机防火墙。我该如何找到问题所在呢?
rails -b 0.0.0.0
。 - sameers