localhost、127.0.0.1 和 本機IP 三者的區別

localhost 首先 localhost 是一個域名,在過去它指向 127.0.0.1 這個IP地址。在操做系統支持 ipv6 後,它同時還指向ipv6 的地址 [::1] 在 Windows 中,這個域名是預約義的,從 hosts 文件中能夠看出:php # localhost name resolution is handled within DNS itself. # 127.0.0.1
相關文章
相關標籤/搜索