{"id":152,"date":"2012-01-29T22:27:43","date_gmt":"2012-01-29T14:27:43","guid":{"rendered":"http:\/\/www.withonly.com\/?p=152"},"modified":"2012-01-29T22:27:43","modified_gmt":"2012-01-29T14:27:43","slug":"localhost-%e6%97%a0%e6%b3%95%e8%ae%bf%e9%97%ae%e7%9a%84%e4%b8%80%e7%a7%8d%e5%8f%af%e8%83%bd%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=152","title":{"rendered":"localhost \u65e0\u6cd5\u8bbf\u95ee\u7684\u4e00\u79cd\u53ef\u80fd\u53ca\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u8fc7\u5e74\u56de\u5bb6\u7684\u65f6\u5019\uff0c\u8fd0\u884c\u4e00\u4e2a net \u5199\u7684 web \u9879\u76ee\u7684\u65f6\u5019\uff0c\u53d1\u73b0 localhost \u65e0\u6cd5\u8bbf\u95ee\uff0c\u65e0\u8bba\u662fVS\u81ea\u5e26\u7684\uff0c\u8fd8\u662f\u901a\u8fc7 IIS \u90fd\u4e0d\u53ef\u4ee5\u3002\u5f53\u65f6\u8fd8\u60f3\uff0c\u8fd9\u7535\u8111\u96be\u9053\u8fd8\u4ee5\u4e3a\u56de\u4e86\u4e00\u6b21\u5bb6\u5c31\u4e0d\u8ba9\u7528 localhost \u4e86\u554a\u3002\u6070\u597d\u5728\u90a3\u524d\u4e0d\u4e45\uff0c\u6211\u5b89\u88c5\u4e86 windows phone SDK ,\u8fd8\u4ee5\u4e3a\u662f\u7531\u4e8e\u8fd9\u4e2a\u5bfc\u81f4\u7684\uff0c\u9042\u91cd\u65b0\u5b89\u88c5\u4e86 Visual Studio 2010 \uff0c\u8fd8\u662f\u4e0d\u53ef\u4ee5\u3002<\/p>\n<p>\u5f53\u65f6\u5fd9\u7740\u804a\u5929\uff0c\u5c31\u653e\u4e0b\u6765\u4e86\u3002<\/p>\n<p>\u4eca\u5929\u665a\u4e0a\u5728\u987a\u624b\u5199\u4ee3\u7801\uff0c\u53c8\u8981\u7528 localhost \u4e86\uff0c\u6e05\u7406\u4e86\u5783\u573e\u6587\u4ef6\uff0c\u505c\u6b62\u4e86 apache \u548c nginx \u90fd\u6728\u6709\u6548\u679c\u3002\u7f51\u4e0a\u641c\u4e86\u4e0b\uff0c\u6709\u4eba\u8bf4 ping \u4e0b\uff0c\u8fd9\u4e00\u4e0b\u63d0\u9192\u4e86\u6211\u3002\u4e8e\u662f ping localhost \uff0c\u8fd4\u56de\u7684\u662f::1 \uff0c\u4e00\u770b\u5c31\u662f IPv6 \u7684\u5730\u5740\uff0c\u53ef\u662f\u4ee5\u524d\u4e5f\u7528 IPv6 \u8bbe\u7f6e\u86ee\u597d\u7684\u5440\u3002\u5728\u7f51\u7edc\u9002\u914d\u5668\u91cc\u628a IPv6 \u76f8\u5173\u7684\u52fe\u52fe\u90fd\u7ed9\u53d6\u6d88\u4e86\uff0c\u8fd8\u662f\u4e0d\u884c\u3002\u5d29\u6e83\u6389\uff0c\u76f4\u63a5\u5378\u8f7d\u6389\u597d\u4e86\uff0c\u53cd\u6b63\u73b0\u5728\u4e5f\u7528\u4e0d\u4e0a\u3002<\/p>\n<p>\u547d\u4ee4\u884c\u8f93\u5165\uff1aipv6 uninstall \uff0c\u63d0\u793a\u65e0\u6548\u7684\u547d\u4ee4\u3002\u5c31\u53c8\u5728\u7f51\u4e0a\u641c\u4e86\u54c8\uff0c\u6709\u7684\u4eba\u8bf4\u5378\u8f7d\u4e86\u4e0d\u597d\uff0c\u6709\u7684\u65b9\u6cd5\u662f\u4fee\u6539\u6ce8\u518c\u8868\u3002\u611f\u89c9\u90fd\u6ca1\u6709\u8bf4\u5230\u91cd\u70b9\u4e0a\uff0c\u4e8e\u662f\u53c8\u8f6c\u5411 google \uff0c\u770b\u5230\u56fd\u5916\u7684\u67d0\u4e2a\u5e16\u5b50\u63d0\u5230\u4e86 hosts \u6587\u4ef6\u3002\u731b\u7136\u60f3\u8d77\u6765\uff0c\u524d\u4e0d\u4e45\u7684\u524d\u4e0d\u4e45\uff0c\u6211\u4f3c\u4e4e\u7528\u9b54\u65b9\u64cd\u4f5c\u4e86\u4e0b hosts \u6587\u4ef6\uff0c\u6253\u5f00\u7a0b\u5e8f\u4e00\u770b\uff0c\u6211\u5f53\u65f6\u5728\u5220\u9664 facebook \u7684\u8bb0\u5f55\u65f6\u56fe\u65b9\u4fbf\uff0c\u7ed9\u4e00\u952e\u6e05\u7a7a\u4e86\u3002<\/p>\n<p>\u4e8e\u662f\u8865\u4e0a127.0.01 localhost \u7684\u6620\u5c04\uff0c\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n<p>\u60b2\u50ac\u7684\u5f88\u5440~\u3002\u987a\u4fbf\u8bf4\u4e00\u53e5\uff0c\u597d\u4e45\u6ca1\u6709\u5199\u4ee3\u7801\u4e86\uff0c\u5199 margin-left \u7684\u65f6\u5019\uff0c\u770b\u7740\u597d\u964c\u751f\u554a\u3002\u624b\u5934\u4e0a\u7684\u8fd9\u4e2a\u7f51\u7ad9\u611f\u89c9\u8981\u7ed3\u5c3e\u5b8c\u4e86\uff0c\u53ef\u662f\u600e\u4e48\u90fd\u5b8c\u4e0d\u4e86\uff0c\u8863\u670d\u81ea\u5df1\u6d17\u5f88\u662f\u7740\u6025\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fc7\u5e74\u56de\u5bb6\u7684\u65f6\u5019\uff0c\u8fd0\u884c\u4e00\u4e2a net \u5199\u7684 web \u9879\u76ee\u7684\u65f6\u5019\uff0c\u53d1\u73b0 localhost \u65e0\u6cd5\u8bbf\u95ee\uff0c\u65e0\u8bba\u662fVS\u81ea\u5e26 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[48],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-a-short-word","tag-localhost"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/152\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}