我不是能無法通過ubuntu中的curl命令訪問localhost?
curl -I 127.0.0.1 gives
curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
而
curl -I example.com is working fine
我的主機文件如下任何想法給予通過curl命令訪問終端我的本地???
127.0.0.1 localhost
127.0.1.1 jordanism
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
再次請求幫助的人還沒有發佈他們爲了他人的利益而發現的答案。如果可以的話,我會降低你的評分_ –