{"id":8814,"date":"2019-12-23T21:57:48","date_gmt":"2019-12-23T12:57:48","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=8814"},"modified":"2023-05-28T08:42:13","modified_gmt":"2023-05-27T23:42:13","slug":"%e3%80%90%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=8814","title":{"rendered":"\u3010\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3011\u300cbind\u30a2\u30c9\u30ec\u30b9\u300d\u3084\u300c0.0.0.0\u300d\u3068\u306f\uff1f"},"content":{"rendered":"<h2>\u300cbind\u30a2\u30c9\u30ec\u30b9\u300d\u3068\u306f\uff1f<\/h2>\n<p>Apache\u306a\u3069\u306eHTTP\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306b\u6307\u5b9a\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u306e\u3053\u3068\u3067\u4ed6\u306e\u30de\u30b7\u30f3\u304b\u3089\u3069\u3046\u3044\u3063\u305f\u540d\u524d\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u3044\u304b\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u3002\u300c0.0.0.0\u300d\u3084\u300c127.0.0.1\u300d\u7b49\u3092\u6307\u5b9a\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c0.0.0.0\u300d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u304c\u8907\u6570\u306eNIC(IP\u30a2\u30c9\u30ec\u30b9)\u3092\u6301\u3063\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u5168\u3066\u306eNIC\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u300c0.0.0.0\u300d\u3068\u306f\uff1f<\/h2>\n<p>\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u4e0a\u306f\u8907\u6570\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9(NIC)\u3092\u6301\u3064\u306e\u3067\u8907\u6570\u306eIP\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5168\u3066\u306eIPv4\u30a2\u30c9\u30ec\u30b9\u3092\u610f\u5473\u3057\u307e\u3059\u3002(\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3067IP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002)<\/p>\n<p>\u3053\u308c\u3092bind\u30a2\u30c9\u30ec\u30b9\u306b\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f<span style=\"color: #ff0000;\"><strong>\u30de\u30b7\u30f3\u4e0a\u306b\u8907\u6570\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3069\u3061\u3089\u306b\u3082\u5230\u9054\u53ef\u80fd<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002(Linux\u3084Mac\u306a\u3069\u3067\u306fifconfig\u306a\u3069\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002)<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u305d\u306e\u30de\u30b7\u30f3\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a2\u30c9\u30ec\u30b9\u3092\u305d\u308c\u305e\u308c\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30afIF\u306b\u6301\u3063\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u305d\u306e\u5168\u3066\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8IP\u30a2\u30c9\u30ec\u30b9\u306b\u300c192.168.10.4\u300d<\/li>\n<li>WAN\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066\u300cwww.test.com\u300d<\/li>\n<li>\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u300c127.0.0.1\u300d<\/li>\n<\/ul>\n<h3>\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9<\/h3>\n<p>\u81ea\u5206\u81ea\u8eab\u3092\u6307\u3059IP\u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002127.0.0.1\u306b\u306a\u308a\u307e\u3059\u3002\u5f53\u305f\u308a\u524d\u3067\u3059\u304c\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u3057\u304b\u610f\u5473\u3092\u306a\u3055\u306a\u3044\u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002\uff08\u5916\u90e8\u3060\u3063\u305f\u3089\u5916\u90e8\u306e\u30de\u30b7\u30f3\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308b\u305f\u3081\uff09<\/p>\n<p>\u666e\u901a\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f\u7269\u7406NIC\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304c\u3001\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u306b\u95a2\u3057\u3066\u306f\u305d\u306e\u6a5f\u5668\u304c\u8d77\u52d5\u3057\u3066\u3044\u308c\u3070\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\uff08\u306a\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u3057\u305f\u6642\u306a\u3069\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u306e\u30c6\u30b9\u30c8\u306f\u307e\u3060\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u69cb\u7bc9\u3057\u3066\u306a\u3044\u306e\u3067\u3067\u304d\u306a\u3044\u3051\u3069\u3001\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u306e\u6b63\u5e38\u6027\u78ba\u8a8d\u304c\u3057\u305f\u3044\u3068\u3044\u3046\u5834\u5408\u306b\u4f7f\u3048\u307e\u3059\u3002\u7269\u7406\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u76e3\u8996\u3060\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30ea\u30f3\u30af\u304c\u30c0\u30a6\u30f3\u3057\u305f\u306e\u304b\u3001\u6a5f\u5668\u304c\u30c0\u30a6\u30f3\u3057\u305f\u306e\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u76e3\u8996\u306a\u3089\u6a5f\u5668\u81ea\u4f53\u304c\u30c0\u30a6\u30f3\u3057\u305f\u3068\u5224\u5b9a\u3067\u304d\u308b\u3002\uff09<\/p>\n<p>Erthnet\u306a\u3069\u306e\u7269\u7406\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306f\u306a\u304f\u3001\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3044\u3046\u8ad6\u7406\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u7d10\u3065\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Linux\u3067\u306f\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">ip a<\/pre>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u69cb\u7bc9\u306a\u3069\u306e\u5206\u91ce\u3067\u306f\u4ee3\u8868IP\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066\u4f7f\u308f\u308c\u308b\u3053\u3068\u3082\u591a\u3044\u3067\u3059\u3002(OSPF\u3084BGP\u306a\u3069\u3067\u306f\u4ee3\u8868\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066\u3053\u308c\u3092\u9078\u5b9a\u3057\u307e\u3059\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"\u300cbind\u30a2\u30c9\u30ec\u30b9\u300d\u3068\u306f\uff1f Apache\u306a\u3069\u306eHTTP\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306b\u6307\u5b9a\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u306e\u3053\u3068\u3067\u4ed6\u306e\u30de\u30b7\u30f3\u304b\u3089\u3069\u3046\u3044\u3063\u305f\u540d\u524d\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u3044\u304b\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\u3002\u300c0.0.0.0\u300d\u3084\u300c12 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[89],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8814"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8814"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8814\/revisions"}],"predecessor-version":[{"id":20782,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8814\/revisions\/20782"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8814"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}