{"id":3385,"date":"2015-05-08T14:39:36","date_gmt":"2015-05-08T05:39:36","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=3385"},"modified":"2015-05-12T12:34:14","modified_gmt":"2015-05-12T03:34:14","slug":"aws%e3%81%aecentos7%e7%b3%bb%e3%81%a7%e3%80%81%e3%83%9b%e3%82%b9%e3%83%88%e5%90%8d%e3%82%92%e5%9b%ba%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/aws%e3%81%aecentos7%e7%b3%bb%e3%81%a7%e3%80%81%e3%83%9b%e3%82%b9%e3%83%88%e5%90%8d%e3%82%92%e5%9b%ba%e5%ae%9a%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"AWS\u306eCentOS7\u7cfb\u3067\u3001\u30db\u30b9\u30c8\u540d\u3092\u56fa\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3060\u3093\u3060\u3093\u3068\u6696\u304b\u3044\u65e5\u304c\u5897\u3048\u3001\u3059\u3054\u3057\u3084\u3059\u3044\u6c17\u6e29\u3068\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u3055\u3066\u3001\u4eca\u56de\u306fAWS\u306eCentOS7\u306b\u3066\u500b\u4eba\u7684\u306b\u56f0\u3063\u305f\u70b9\u3068\u3001\u305d\u306e\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u81f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30a4\u30c8\u30eb\u306b\u3082\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001AWS\u306eCentOS7\u306b\u3066\u30db\u30b9\u30c8\u540d\u304c\u666e\u901a\u306b\u3084\u308b\u3068\u56fa\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\uff08AWS\u306eCentOS6\u3067\u3053\u306e\u554f\u984c\u306f\u8d77\u304d\u307e\u305b\u3093\uff09<\/p>\n<p>\u300c\u901a\u5e38\u306e\u7269\u7406\u30b5\u30fc\u30d0\u3067\u3042\u308c\u3070\u3001\u3053\u308c\u3067\u3067\u304d\u305f\u306e\u306b\u2026\u300d\u3068\u611f\u3058\u308b\u65b9\u3082\u5c45\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u306e\u539f\u56e0\u306f<\/p>\n<p><strong>AWS\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308bAMI\u30a4\u30e1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308bcloud-init\u304c<br \/>\n\u81ea\u52d5\u7684\u306b\u30db\u30b9\u30c8\u540d\u3092\u66f8\u304d\u304b\u3048\u308b\u304b\u3089<br \/>\n<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u5bfe\u51e6\u6cd5\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p><strong>cloud-init\u306e\u8a2d\u5b9a\u3067\u3001\u30db\u30b9\u30c8\u540d\u306e\u81ea\u52d5\u8a2d\u5b9a\u3092\u7121\u52b9\u5316\u3059\u308b<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u624b\u9806\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncp -pi \/etc\/cloud\/cloud.cfg \/etc\/cloud\/cloud.cfg.org\nsed -i -e &amp;#039;\/update_hostname\/d&amp;#039; \/etc\/cloud\/cloud.cfg\n<\/pre>\n<p>\u3053\u306e2\u884c\u3067\u81ea\u52d5\u8a2d\u5b9a\u304c\u6b62\u307e\u308a\u307e\u3059\u3002<br \/>\n(1\u884c\u76ee\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u3059)<\/p>\n<p>\u3042\u3068\u306f<br \/>\n'''<br \/>\nhostnamectl set-hostname [\u30db\u30b9\u30c8\u540d]\n'''<br \/>\n'''<br \/>\n\/etc\/hosts<br \/>\n\u306e\u4e2d\u306b<br \/>\n[ip\u30a2\u30c9\u30ec\u30b9] [\u30db\u30b9\u30c8\u540d]\n'''<br \/>\n\u3092\u66f8\u3044\u3066\u3001\u518d\u8d77\u52d5\u3082\u3057\u304f\u306f\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3092\u3059\u308c\u3070\u30db\u30b9\u30c8\u540d\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\uff01<\/p>\n<p>\u56f0\u3063\u305f\u4e8b\u304c\u3042\u308c\u3070\u30b3\u30e1\u30f3\u30c8\u7b49\u3082\u52df\u96c6\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3060\u3093\u3060\u3093\u3068\u6696\u304b\u3044\u65e5\u304c\u5897\u3048\u3001\u3059\u3054\u3057\u3084\u3059\u3044\u6c17\u6e29\u3068\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002 \u3055\u3066\u3001\u4eca\u56de\u306fAWS\u306eCentOS7\u306b\u3066\u500b\u4eba\u7684\u306b\u56f0\u3063\u305f\u70b9\u3068\u3001\u305d\u306e\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u81f4\u3057\u307e\u3059\u3002 \u30bf\u30a4\u30c8\u30eb\u306b\u3082\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001AWS\u306eCentOS7\u306b\u3066\u30db\u30b9\u30c8\u540d\u304c&#8230;<\/p>\n","protected":false},"author":43,"featured_media":3471,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"3385","footnotes":""},"categories":[20,29],"tags":[],"class_list":{"0":"post-3385","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-linux","9":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=3385"}],"version-history":[{"count":8,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3385\/revisions"}],"predecessor-version":[{"id":3426,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3385\/revisions\/3426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/3471"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=3385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=3385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=3385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}