{"id":3693,"date":"2019-01-13T01:00:14","date_gmt":"2019-01-12T16:00:14","guid":{"rendered":"https:\/\/higherhope.net\/?p=3693"},"modified":"2019-01-13T01:26:16","modified_gmt":"2019-01-12T16:26:16","slug":"goofys%e3%81%a7s3%e3%82%92mount%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/higherhope.net\/?p=3693","title":{"rendered":"goofys\u3067s3\u3092mount\u3059\u308b\u3002"},"content":{"rendered":"<p>goofys\u3067EC2\u304b\u3089s3\u3092mount\u3059\u308b\u3002<br \/>\n\u4f5c\u696d\u306f\u5168\u3066root\u3067\u3084\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306faws configure\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u9023\u643a<\/p>\n<blockquote><p># aws configure<br \/>\nAWS Access Key ID [None]: hogehogehogehogehoge<br \/>\nAWS Secret Access Key [None]: hagehagehagehagehagehgaehage<br \/>\nDefault region name [None]: ap-northeast-1<br \/>\nDefault output format [None]: json<\/p><\/blockquote>\n<p>s3\u306e\u30d0\u30b1\u30c3\u30c8\u304c\u898b\u3048\u308b\u304b\u78ba\u8a8d<\/p>\n<blockquote><p># aws s3 ls<br \/>\n2018-07-31 02:44:55 hogehoge<br \/>\n2018-08-31 01:57:46 xxxxx-test<br \/>\n2018-08-22 07:23:27 hagehagehage<\/p><\/blockquote>\n<p>\u4eca\u56demount\u3059\u308b\u306e\u30d0\u30b1\u30c3\u30c8\u306fhogehoge<\/p>\n<p>go\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<blockquote><p># yum install golang fuse git<br \/>\n# go get github.com\/kahing\/goofys<br \/>\n# go install github.com\/kahing\/goofys<\/p><\/blockquote>\n<p>go\u306epath\u3092\u901a\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p># export GOPATH=$HOME\/go<\/p><\/blockquote>\n<p>\u8d77\u52d5\u6642\u306bpath\u304c\u901a\u308b\u3088\u3046\u306b.bashrc\u306b\u3082\u8a18\u8ff0<\/p>\n<blockquote><p># vim \/root\/.bashrc<br \/>\n#\u6700\u7d42\u884c\u306b\u9069\u5f53\u306b\u8a18\u8f09<br \/>\nexport GOPATH=$HOME\/go<\/p><\/blockquote>\n<p>\u78ba\u8a8d<\/p>\n<blockquote><p># go version<br \/>\ngo version go1.9.4 linux\/amd64<br \/>\n# echo $GOPATH<br \/>\n\/root\/go<\/p><\/blockquote>\n<p>mount\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p># mkdir \/mnt\/s3<\/p><\/blockquote>\n<p>mount\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p># .\/go\/bin\/goofys &#8211;region ap-northeast-1 &#8211;profile s3 hogehoge \/mnt\/s3<\/p><\/blockquote>\n<p>\u78ba\u8a8d<\/p>\n<blockquote><p># df -h | grep hogehoge<br \/>\nhogehoge  1.0P     0  1.0P   0% \/mnt\/s3<\/p><\/blockquote>\n<p>mount\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306f\u8d77\u52d5\u6642\u306b\u81ea\u52d5mount\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\nfstab\u306b\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u3051\u3070\u3044\u3044\u3067\u3059\u3002<\/p>\n<blockquote><p># cat \/etc\/fstab | grep hogehoge<br \/>\n\/root\/go\/bin\/goofys#hogehoge   \/mnt\/s3 fuse _netdev,allow_other,&#8211;file-mode=0666,&#8211;uid=500,&#8211;gid=500 0 0<\/p><\/blockquote>\n<p>reboot\u3057\u3066mount\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u7d42\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>goofys\u3067EC2\u304b\u3089s3\u3092mount\u3059\u308b\u3002 \u4f5c\u696d\u306f\u5168\u3066root\u3067\u3084\u3063\u3066\u307e\u3059\u3002 \u307e\u305a\u306faws configure\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u9023\u643a # aws configure AWS Access Key ID [None]: ho&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/higherhope.net\/?p=3693\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[160,4],"tags":[166],"class_list":["post-3693","post","type-post","status-publish","format-standard","hentry","category-aws","category-linux","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/higherhope.net\/?p=3693\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:description\" content=\"goofys\u3067EC2\u304b\u3089s3\u3092mount\u3059\u308b\u3002 \u4f5c\u696d\u306f\u5168\u3066root\u3067\u3084\u3063\u3066\u307e\u3059\u3002 \u307e\u305a\u306faws configure\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u9023\u643a # aws configure AWS Access Key ID [None]: ho... Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/higherhope.net\/?p=3693\" \/>\n<meta property=\"og:site_name\" content=\"\u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-12T16:00:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-12T16:26:16+00:00\" \/>\n<meta name=\"author\" content=\"higherhope\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@higherhope5963\" \/>\n<meta name=\"twitter:site\" content=\"@higherhope5963\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"higherhope\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/higherhope.net\/?p=3693#article\",\"isPartOf\":{\"@id\":\"https:\/\/higherhope.net\/?p=3693\"},\"author\":{\"name\":\"higherhope\",\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af\"},\"headline\":\"goofys\u3067s3\u3092mount\u3059\u308b\u3002\",\"datePublished\":\"2019-01-12T16:00:14+00:00\",\"dateModified\":\"2019-01-12T16:26:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/higherhope.net\/?p=3693\"},\"wordCount\":141,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af\"},\"keywords\":[\"linux\"],\"articleSection\":[\"AWS\",\"linux\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/higherhope.net\/?p=3693#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/higherhope.net\/?p=3693\",\"url\":\"https:\/\/higherhope.net\/?p=3693\",\"name\":\"goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\",\"isPartOf\":{\"@id\":\"https:\/\/higherhope.net\/#website\"},\"datePublished\":\"2019-01-12T16:00:14+00:00\",\"dateModified\":\"2019-01-12T16:26:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/higherhope.net\/?p=3693#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/higherhope.net\/?p=3693\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/higherhope.net\/?p=3693#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/higherhope.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"goofys\u3067s3\u3092mount\u3059\u308b\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/higherhope.net\/#website\",\"url\":\"https:\/\/higherhope.net\/\",\"name\":\"\u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\",\"description\":\"\u304a\u3063\u3055\u3093\u307e\u3060\u307e\u3060\u697d\u3067\u304d\u307e\u305b\u3093\u3002\",\"publisher\":{\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/higherhope.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af\",\"name\":\"higherhope\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/higherhope.net\/wp-content\/uploads\/2018\/09\/DSC_0367.jpg\",\"contentUrl\":\"https:\/\/higherhope.net\/wp-content\/uploads\/2018\/09\/DSC_0367.jpg\",\"width\":700,\"height\":394,\"caption\":\"higherhope\"},\"logo\":{\"@id\":\"https:\/\/higherhope.net\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/higherhope5963\"],\"url\":\"https:\/\/higherhope.net\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/higherhope.net\/?p=3693","og_locale":"ja_JP","og_type":"article","og_title":"goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","og_description":"goofys\u3067EC2\u304b\u3089s3\u3092mount\u3059\u308b\u3002 \u4f5c\u696d\u306f\u5168\u3066root\u3067\u3084\u3063\u3066\u307e\u3059\u3002 \u307e\u305a\u306faws configure\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u9023\u643a # aws configure AWS Access Key ID [None]: ho... Continue reading &rarr;","og_url":"https:\/\/higherhope.net\/?p=3693","og_site_name":"\u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","article_published_time":"2019-01-12T16:00:14+00:00","article_modified_time":"2019-01-12T16:26:16+00:00","author":"higherhope","twitter_card":"summary_large_image","twitter_creator":"@higherhope5963","twitter_site":"@higherhope5963","twitter_misc":{"\u57f7\u7b46\u8005":"higherhope","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/higherhope.net\/?p=3693#article","isPartOf":{"@id":"https:\/\/higherhope.net\/?p=3693"},"author":{"name":"higherhope","@id":"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af"},"headline":"goofys\u3067s3\u3092mount\u3059\u308b\u3002","datePublished":"2019-01-12T16:00:14+00:00","dateModified":"2019-01-12T16:26:16+00:00","mainEntityOfPage":{"@id":"https:\/\/higherhope.net\/?p=3693"},"wordCount":141,"commentCount":0,"publisher":{"@id":"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af"},"keywords":["linux"],"articleSection":["AWS","linux"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/higherhope.net\/?p=3693#respond"]}]},{"@type":"WebPage","@id":"https:\/\/higherhope.net\/?p=3693","url":"https:\/\/higherhope.net\/?p=3693","name":"goofys\u3067s3\u3092mount\u3059\u308b\u3002 - \u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","isPartOf":{"@id":"https:\/\/higherhope.net\/#website"},"datePublished":"2019-01-12T16:00:14+00:00","dateModified":"2019-01-12T16:26:16+00:00","breadcrumb":{"@id":"https:\/\/higherhope.net\/?p=3693#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/higherhope.net\/?p=3693"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/higherhope.net\/?p=3693#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/higherhope.net\/"},{"@type":"ListItem","position":2,"name":"goofys\u3067s3\u3092mount\u3059\u308b\u3002"}]},{"@type":"WebSite","@id":"https:\/\/higherhope.net\/#website","url":"https:\/\/higherhope.net\/","name":"\u697d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","description":"\u304a\u3063\u3055\u3093\u307e\u3060\u307e\u3060\u697d\u3067\u304d\u307e\u305b\u3093\u3002","publisher":{"@id":"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/higherhope.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/higherhope.net\/#\/schema\/person\/d8206977903d5a243c56f95f977122af","name":"higherhope","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/higherhope.net\/#\/schema\/person\/image\/","url":"https:\/\/higherhope.net\/wp-content\/uploads\/2018\/09\/DSC_0367.jpg","contentUrl":"https:\/\/higherhope.net\/wp-content\/uploads\/2018\/09\/DSC_0367.jpg","width":700,"height":394,"caption":"higherhope"},"logo":{"@id":"https:\/\/higherhope.net\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/x.com\/higherhope5963"],"url":"https:\/\/higherhope.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/posts\/3693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/higherhope.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3693"}],"version-history":[{"count":7,"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/posts\/3693\/revisions"}],"predecessor-version":[{"id":3700,"href":"https:\/\/higherhope.net\/index.php?rest_route=\/wp\/v2\/posts\/3693\/revisions\/3700"}],"wp:attachment":[{"href":"https:\/\/higherhope.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/higherhope.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/higherhope.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}