我正在使用Vagrant为我运行服务器。所以我跟着this教程,当我打开我的浏览器去检查。我得到Oops! Google Chrome could not connect to 127.0.0.1
。我也试过localhost
和我的IP地址。随着不同港口的混合。奇怪之处是,当我做 curl 'localhost'
或curl 'http://127.0.0.1:80'
我得到流浪服务器没有显示?
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
我知道这是正常的,但我只能得到这显示在命令行上。有任何想法吗?
这是当你从本地计算机或从无业游民箱卷曲? –
从我的流浪者箱子。当我在本地机器上尝试它时,我得到'curl:(7)失败连接到127.0.0.1:80;连接被拒绝@ @CameronMartin – user3413366
查看我发布的答案。 –