{"id":110,"date":"2021-03-08T11:43:53","date_gmt":"2021-03-08T02:43:53","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=110"},"modified":"2021-05-04T16:02:38","modified_gmt":"2021-05-04T07:02:38","slug":"post-110","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/08\/110\/","title":{"rendered":"\u30b5\u30fc\u30d0\u7528Raspberry Pi \u306e\u8a2d\u5b9a3"},"content":{"rendered":"\n<p>\u30fbweb \u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3000web \u30b5\u30fc\u30d0\u306e Apache \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get -y install apache2<\/p>\n\n\n\n<p>\u3000LAN \u5185\u306e\u30de\u30b7\u30f3\u3067<br>http:\/\/\u30de\u30b7\u30f3\u540d.local\/<br>\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070 OK\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"621\" src=\"https:\/\/sirius10.dip.jp\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/Apache_default.png\" alt=\"\" class=\"wp-image-111\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/Apache_default.png 941w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/Apache_default-300x198.png 300w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/Apache_default-768x507.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/figure>\n\n\n\n<p>\u30fb\u4eee\u60f3\u30b5\u30a4\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3000\u5916\u90e8\u306b\u516c\u958b\u3059\u308b\u306a\u3089\u3001\u4eee\u60f3\u30b5\u30a4\u30c8\u3092\u4f5c\u3063\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u30c6\u30b9\u30c8\u6642\u306b\u3082\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u3000\u5916\u90e8\u304b\u3089\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001\u56fa\u5b9a\u306e\u30b0\u30ed\u30fc\u30d0\u30eb IP \u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3001\u767b\u9332\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u516c\u958b\u3055\u308c\u3066\u3044\u308b dynamic dns \u30b5\u30fc\u30d0\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u56fa\u5b9a\u306e\u30b0\u30ed\u30fc\u30d0\u30eb IP \u30a2\u30c9\u30ec\u30b9\u3067\u3042\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u56fd\u5185\u3067\u3082\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u30b5\u30fc\u30d0\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u306e\u3067\u63a2\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<br>\u3000dns \u30b5\u30fc\u30d0\u306b\u767b\u9332\u3067\u304d\u305f\u540d\u524d\u3092\u4f7f\u3063\u3066\u4eee\u60f3\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u4eee\u60f3\u30b5\u30a4\u30c8\u306f\u3001\/etc\/apache2\/sites-available \u306b\u4eee\u60f3\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u3092\u66f8\u307e\u3059\u3002<br>\u305d\u3057\u3066\u3001\u305d\u306e\u30b5\u30a4\u30c8\u3092\u6709\u52b9\u306b\u3057\u3066 Apache \u3092\u518d\u59cb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo a2ensite \u8a2d\u5b9a\u540d<br>$ sudo service apache2 restart<\/p>\n\n\n\n<p>(\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092 \/etc\/apache2\/sites-enabled \u306b\u4f5c\u6210\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u3002)<\/p>\n\n\n\n<p>\u3000\u8a66\u3059\u3060\u3051\u306a\u3089\u3001sites-avilable \u306e000-default.conf \u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001DocumentRoot \u3092\u5909\u66f4\u3057\u3001ServerName \u306b \u767b\u9332\u3057\u305f\u30b5\u30a4\u30c8\u3092\u66f8\u304f\u3060\u3051\u3067\u3082\u3044\u3044\u3067\u3059\u3002\uff08\u3053\u306e\u30b5\u30a4\u30c8\u306a\u3089 sirius10.dip.jp\uff09<\/p>\n\n\n\n<p>\u3042\u3068\u306f\u3001IP \u30a2\u30c9\u30ec\u30b9\u3092\u56fa\u5b9a\u3057\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a\u3067\u300180 \u7248\u30dd\u30fc\u30c8\u3092 web \u30b5\u30fc\u30d0\u306b\u56de\u3059\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u30fbIP \u30a2\u30c9\u30ec\u30b9\u3092\u56fa\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3000\u30b5\u30fc\u30d0\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u9759\u7684\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>\u3000\u4ee5\u524d\u306f\u3001\/etc\/network\/interfaces \u3092\u66f8\u304d\u63db\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u73fe\u5728\u306f\u3001\/etc\/dhcpcd.conf \u306b\u66f8\u304f\u3088\u3046\u3067\u3059\u3002<br>dhcpcd.conf \u306b\u8a2d\u5b9a\u4f8b\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u53c2\u8003\u306b<\/p>\n\n\n\n<p class=\"file\">interface eth0<br>static ip_address=192.168.0.10\/24<br>static routers=192.168.0.1<br>static domain_name_servers=192.168.0.1 8.8.8.8<\/p>\n\n\n\n<p>\u3068\u8a00\u3063\u305f\u3088\u3046\u306b\u66f8\u3051\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002\u30eb\u30fc\u30bf\u306e\u8a2d\u5b9a\u304c\u6e08\u3093\u3067\u3044\u308c\u3070\u3001\u5916\u90e8\u304b\u3089\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30fbweb \u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u3000web \u30b5\u30fc\u30d0\u306e Apache \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002 $ sudo apt-get -y install apache2 \u3000LAN \u5185\u306e\u30de\u30b7\u30f3\u3067http:\/\/\u30de\u30b7\u30f3\u540d.lo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,8],"tags":[],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-web","category-server-config"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":3,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/110\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}