我不是能无法通过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
再次请求帮助的人还没有发布他们为了他人的利益而发现的答案。如果可以的话,我会降低你的评分_ –