{"id":247,"date":"2014-07-10T10:00:51","date_gmt":"2014-07-10T01:00:51","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=247"},"modified":"2014-09-10T21:07:55","modified_gmt":"2014-09-10T12:07:55","slug":"red-hat-el7%e3%81%ae%e5%9f%ba%e6%9c%ac%e8%a8%ad%e5%ae%9a%ef%bc%88%e3%83%ad%e3%82%b1%e3%83%bc%e3%83%ab%e3%81%a8%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%be%e3%83%bc%e3%83%b3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/red-hat-el7%e3%81%ae%e5%9f%ba%e6%9c%ac%e8%a8%ad%e5%ae%9a%ef%bc%88%e3%83%ad%e3%82%b1%e3%83%bc%e3%83%ab%e3%81%a8%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%be%e3%83%bc%e3%83%b3%ef%bc%89\/","title":{"rendered":"Red Hat EL7\u306e\u57fa\u672c\u8a2d\u5b9a\uff08\u30ed\u30b1\u30fc\u30eb\u3068\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\uff09"},"content":{"rendered":"<h1>\u76ee\u7684<\/h1>\n<p>\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u65b9\u6cd5\u3084\u8a2d\u5b9a\u7b87\u6240\u304cEL6\u307e\u3067\u3068\u3069\u3046\u9055\u3046\u306e\u304b\u3092\u9806\u306b\u8ffd\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>RedHat EL7\u306e\u691c\u8a3c\u306fAWS\u306b\u3066\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3082\u305d\u3082AWS\u4e0a\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u8d70\u3089\u305b\u308b\u7b87\u6240\u304c\u7121\u3044\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306a\u72b6\u614b\u3067\u5229\u7528\u958b\u59cb\u306b\u306a\u3063\u3066\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u6a5f\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u3068\u306f\u9055\u3044\u3082\u3044\u304f\u3064\u304b\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b7\u30b9\u30c6\u30e0\u30ed\u30b1\u30fc\u30eb\u306e\u8a2d\u5b9a<\/h2>\n<p>AWS\u3067\u4f5c\u6210\u3057\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u306f\u30b7\u30b9\u30c6\u30e0\u30ed\u30b1\u30fc\u30eb\u304c\u3059\u3067\u306b\u8a2d\u5b9a\u6e08\u307f\u3067\u7acb\u3066\u3089\u308c\u307e\u3059\u306e\u3067\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nRed Hat EL7\u3067\u306flocale\u306e\u8a2d\u5b9a\u3084\u78ba\u8a8d\u306b\u306f\u5c02\u7528\u306e\u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001AWS\u3067\u4f5c\u6210\u3055\u308c\u305f\u76f4\u5f8c\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre># localectl  status\n   System Locale: LANG=en_US.UTF-8\n       VC Keymap: us\n      X11 Layout: us\n<\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u65e5\u672c\u8a9elocale\u3067\u5229\u7528\u3067\u304d\u308b\u307b\u3046\u304c\u3046\u308c\u3057\u3044\u6a5f\u4f1a\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre># localectl set-locale LANG=ja_JP.utf8\n<\/pre>\n<pre># localectl status\n   System Locale: LANG=ja_JP.utf8\n       VC Keymap: us\n      X11 Layout: us\n<\/pre>\n<p>\u53cd\u6620\u306f\/etc\/locale.conf\u306b\u3055\u308c\u307e\u3059\u306e\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre># cat \/etc\/locale.conf\nLANG=ja_JP.utf8\n<\/pre>\n<p>keymap\u3082us\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306fAWS\u3067\u306f\u76f4\u63a5\u4f7f\u3046\u3053\u3068\u304c\u7121\u3055\u305d\u3046\u306a\u306e\u3067\u3053\u306e\u307e\u307e\u3067\u3082\u3088\u3055\u305d\u3046\u3067\u3059\u306d\u3002<br \/>\n\uff08\u56f0\u3063\u305f\u3089\u5909\u3048\u307e\u3057\u3087\u3046 :)\uff09<\/p>\n<h2>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a<\/h2>\n<p>\u3053\u3061\u3089\u306f\u4eca\u307e\u3067\u3069\u304a\u308a<tt>\/etc\/localtime<\/tt>\u306b\u5bfe\u3057\u3066<tt>\/usr\/share\/zoneinfo<\/tt>\u306e\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u304bsymlink\u306b\u3059\u308c\u3070\u3088\u3044\u3068\u306e\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067\u3044\u3064\u3082\u306e<tt>\/etc\/sysconfig\/clock<\/tt>\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u3088\u3046\u3067\u30fb\u30fb\u30fb<\/p>\n<pre># ls -l \/etc\/sysconfig\/clock\nls: cannot access \/etc\/sysconfig\/clock: No such file or directory\n<\/pre>\n<p>glibc\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u306f\u52dd\u624b\u306b\u7f6e\u304d\u63db\u308f\u3063\u305f\u308a\u3057\u306a\u3044\u306e\u304b\u306a\uff1f\u3068\u7591\u554f\u306b\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>localtime\u30d5\u30a1\u30a4\u30eb\u306f\u3069\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7ba1\u7406\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3068systemd\u306e\u69d8\u3067\u3059<\/p>\n<pre># rpm -qf \/etc\/localtime\nsystemd-208-11.el7.x86_64\n<\/pre>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308bscript\u3092\u307f\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre># rpm -q -scripts  systemd\n\uff08\u7565\uff09\n# Migrate \/etc\/sysconfig\/clock\nif [ ! -L \/etc\/localtime -a -e \/etc\/sysconfig\/clock ] ; then\n       . \/etc\/sysconfig\/clock &gt;\/dev\/null 2&gt;&amp;1 || :\n       if [ -n \"$ZONE\" -a -e \"\/usr\/share\/zoneinfo\/$ZONE\" ] ; then\n              ln -sf \"..\/usr\/share\/zoneinfo\/$ZONE\" \/etc\/localtime &gt;\/dev\/null 2&gt;&amp;1 || :\n       fi\nfi\nrm -f \/etc\/sysconfig\/clock &gt;\/dev\/null 2&gt;&amp;1 || :\n\uff08\u7565\uff09\n<\/pre>\n<p>\u7121\u3044\u5834\u5408\u306b\u306f\u4f55\u3082\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001glibc\u5074\u3067\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u304c\u3001\u3053\u3061\u3089\u3082\/etc\/localtime\u306b\u5bfe\u3057\u3066\u306e\u64cd\u4f5c\u306f\u4f55\u3082\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<pre># rpm -q -scripts  glibc\npreinstall scriptlet (using ):\n-- Check that the running kernel is new enough\nrequired = '2.6.32'\nrel = posix.uname(\"%r\")\nif rpm.vercmp(rel, required) &lt; 0 then\n  error(\"FATAL: kernel too old\", 0)\nend\npostinstall program: \/usr\/sbin\/glibc_post_upgrade.x86_64\npostuninstall program: \/sbin\/ldconfig\n<\/pre>\n<p>\u3069\u3046\u3084\u3089\u5b89\u5fc3\u3057\u3066\u904b\u7528\u3067\u304d\u305d\u3046\u3067\u3059:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 \u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u65b9\u6cd5\u3084\u8a2d\u5b9a\u7b87\u6240\u304cEL6\u307e\u3067\u3068\u3069\u3046\u9055\u3046\u306e\u304b\u3092\u9806\u306b\u8ffd\u3063\u3066\u307f\u307e\u3057\u305f\u3002 RedHat EL7\u306e\u691c\u8a3c\u306fAWS\u306b\u3066\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u3002 \u305d\u3082\u305d\u3082AWS\u4e0a\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u8d70\u3089\u305b\u308b\u7b87\u6240\u304c\u7121\u3044\u306e\u3067\u3001\u3069\u306e\u3088\u3046\u306a\u72b6\u614b\u3067\u5229\u7528\u958b\u59cb&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[20,18],"tags":[15,36],"class_list":{"0":"post-247","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-aws","7":"category-os","8":"tag-redhatel","9":"tag-tips","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/247","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=247"}],"version-history":[{"count":4,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/247\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}