我正在使用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
查看我發佈的答案。 –