{"id":62382,"date":"2020-04-10T03:57:11","date_gmt":"2020-04-09T19:57:11","guid":{"rendered":"http:\/\/4563.org\/?p=62382"},"modified":"2020-04-10T03:57:11","modified_gmt":"2020-04-09T19:57:11","slug":"caddy%e6%80%8e%e4%b9%88%e6%a0%b7%e7%a6%81%e6%ad%a2%e7%9b%91%e5%90%acipv6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=62382","title":{"rendered":"caddy\u600e\u4e48\u6837\u7981\u6b62\u76d1\u542cIPV6"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kkeros<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 21:27:43\t<\/p>\n<h3>caddy\u600e\u4e48\u6837\u7981\u6b62\u76d1\u542cIPV6<\/h3>\n<p>  \u5df2\u7ecf\u7981\u6b62IPV6\uff0c\u67e5\u8be2443\u7aef\u53e3\u8fd8\u662f\u88ab\u76d1\u542cIPV6\uff0ccaddy\u53cd\u4ee3v2\u7528\uff0c\u5927\u795e\u4eec\u5e2e\u5e2e\u5fd9<\/p>\n<p>  caddy&nbsp; &nbsp;17331 root&nbsp; &nbsp; 3uIPv6 2587154826&nbsp; &nbsp;&nbsp; &nbsp;0t0TCP *:https (LISTEN)  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5f20\u5c0f\u9f99<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 23:05:56\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u5f20\u5c0f\u9f99 \u4e8e 2020-3-21 08:28 \u7f16\u8f91 <\/p>\n<p> 1.\u4fee\u6539\/etc\/sysconfig\/network\uff0c\u8ffd\u52a0\uff1a<\/p>\n<p>  NETWORKING_IPV6=no<\/p>\n<p>  2.\u4fee\u6539\/etc\/hosts,\u628aipv6\u7684\u90a3\u53e5\u672c\u5730\u4e3b\u673a\u540d\u89e3\u6790\u7684\u4e5f\u6ce8\u91ca\u6389\uff1a<\/p>\n<p>  #::1&nbsp; &nbsp;localhost localhost6 localhost6.localdomain6<\/p>\n<p>  3.\u8ba9\u7cfb\u7edf\u4e0d\u52a0\u8f7dipv6\u76f8\u5173\u6a21\u5757\uff0c\u8fd9\u9700\u8981\u4fee\u6539modprobe\u76f8\u5173\u8bbe\u5b9a\u6587\u4ef6\uff0c\u4e3a\u4e86\u7ba1\u7406\u65b9\u4fbf\uff0c\u6211\u4eec\u65b0\u5efa\u8bbe\u5b9a\u6587\u4ef6\/etc\/modprobe.d\/ipv6off.conf(\u540d\u5b57\u968f\u4fbf\u8d77)\uff08RHEL6.0\u4e4b\u540e\u6ca1\u6709\u4e86\/etc\/modprobe.conf\u8fd9\u4e2a\u6587\u4ef6\uff09\uff0c\u5185\u5bb9\u5982\u4e0b\uff0c\u4e09\u79cd\u65b9\u5f0f\uff0c\u603b\u6709\u4e00\u6b3e\u9002\u5408\u4f60\uff1a<\/p>\n<p>  alias net-pf-10 off<br \/>  alias ipv6 off<br \/>  options ipv6 disable=1<\/p>\n<p>  4.<\/p>\n<p>  \/etc\/sysctl.conf \u5185\u6838\u7981\u7528v6<\/p>\n<p>  net.ipv6.conf.all.disable_ipv6 = 1<br \/>  net.ipv6.conf.default.disable_ipv6 = 1<br \/>  net.ipv6.conf.lo.disable_ipv6 = 1<br \/>  net.ipv6.conf.eth0.disable_ipv6 = 1<\/p>\n<p>  reboot<\/p>\n<p>  eth0 \u6539\u6210\u5bf9\u5e94\u7684\u7f51\u5361\u540d\u79f0 .<\/p>\n<p>  \u9a8c\u8bc1 v6<\/p>\n<p>  lsmod | grep -i ipv6<\/p>\n<p>  ifconfig | grep -i inet6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nico<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 08:15:58\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f20\u5c0f\u9f99 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 23:05<br \/>  \/etc\/sysctl.conf \u5185\u6838\u7981\u7528v6<\/p>\n<p> \u5149\u8bbe\u7b2c\u4e00\u6761\u53ef\u4ee5\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5f20\u5c0f\u9f99<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 08:25:52\t<\/p>\n<h3><\/h3>\n<p>  \t\tnico \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 08:15<br \/>  \u5149\u8bbe\u7b2c\u4e00\u6761\u53ef\u4ee5\u5417<\/p>\n<p> \u6ca1\u8bd5\u8fc7\uff0c\u6211\u4e00\u822c\u90fd\u662f4\u6761\u8bbe\u7f6e\u3002<br \/>  \u53ef\u4ee5\u7528\u4e0b\u9762\u76842\u6761\u547d\u4ee4\u9a8c\u8bc1\u7ed3\u679c\u3002<\/p>\n<p>  lsmod | grep -i ipv6<\/p>\n<p>  ifconfig | grep -i inet6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nico<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 08:29:32\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f20\u5c0f\u9f99 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 08:25<br \/>  \u6ca1\u8bd5\u8fc7\uff0c\u6211\u4e00\u822c\u90fd\u662f4\u6761\u8bbe\u7f6e\u3002<br \/>  \u53ef\u4ee5\u7528\u4e0b\u9762\u76842\u6761\u547d\u4ee4\u9a8c\u8bc1\u7ed3\u679c\u3002<\/p>\n<p> \u611f\u8c22\u5927\u4f6c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kkeros<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-21 09:23:40\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f20\u5c0f\u9f99 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 23:05<br \/>  1.\u4fee\u6539\/etc\/sysconfig\/network\uff0c\u8ffd\u52a0\uff1a<\/p>\n<p>  NETWORKING_IPV6=no<\/p>\n<p> \u8c22\u8c22\uff0c\u6628\u5929\u53ea\u7981\u4e86\u5185\u6838\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kkeros \u5927\u4f6c\u6709\u8bdd\u8bf4 : 20&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/62382"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62382"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/62382\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62382"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}