{"id":1346,"date":"2015-02-18T00:20:33","date_gmt":"2015-02-17T15:20:33","guid":{"rendered":"http:\/\/www.nightmare-yk.com\/?p=1346"},"modified":"2016-02-23T08:43:22","modified_gmt":"2016-02-22T23:43:22","slug":"centos7-%e3%82%b7%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"http:\/\/www.nightmare-yk.com\/?p=1346","title":{"rendered":"CentOS7 &#8211; \u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u8a2d\u5b9a &#8211;"},"content":{"rendered":"<p>CentOS7\u306b\u306a\u3063\u3066\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u304c\u300cGRUB 2\u300d\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u308c\u306b\u3088\u308a\u3001CentOS6\u306e\u3068\u304d\u3068\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u8a2d\u5b9a\u304c\u5927\u304d\u304f\u5909\u308f\u3063\u305f\u305f\u3081\u3001\u5c11\u3057\u306f\u307e\u308a\u307e\u3057\u305f\u3002\u3002\u3002<br \/>\n\u4eca\u5f8c\u306e\u305f\u3081\u306b\u3082\u30e1\u30e2\u30e1\u30e2\u3006(.. )<\/p>\n<p>\u65e9\u901f\u3067\u3059\u304c\u3001GRUB\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 grub.conf\u306e\u8a2d\u5b9a(\u4f8b)<\/span><span style=\"color: #ff0000;\">\u203b \u8d64\u3044\u90e8\u5206\u3092\u8ffd\u52a0\u3067<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# vi \/boot\/grub\/menu.lst\r\n\uff5e\r\n<span style=\"color: #ff0000;\">serial --unit=1 --speed=115200 --word=8 --parity=no --stop=1<\/span>\r\n<span style=\"color: #ff0000;\">terminal --timeout=10 serial console<\/span>\r\nhiddenmenu\r\ntitle CentOS (2.6.32-504.8.1.el6.x86_64)\r\n        root (hd0,0)\r\n        kernel \/vmlinuz-2.6.32-504.8.1.el6.x86_64 ro root=UUID=53e0e2c0-092b-4a2a-bac5-26123e26ee37 rd_NO_LUKS rd_NO_MD SYSFONT=latarcyrheb-sun16  KEYBOARDTYPE=pc KEYTABLE=jp106 LANG=ja_JP.UTF-8 rd_NO_LVM rd_NO_DM nomodeset clocksource=kvm-clock crashkernel=auto console=ttyS0,115200n8r <span style=\"color: #ff0000;\">console=ttyS1,115200<\/span>\r\n\uff5e\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n<span style=\"color: #7b68ee;\">\u25a0 getty\u306e\u8a2d\u5b9a\u306b\u8ffd\u52a0<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# \/etc\/init\/serial-ttyS1.conf\r\n\uff5e\r\n# This service maintains a getty on \/dev\/ttyS1.\r\n\r\nstart on stopped rc RUNLEVEL=[2345]\r\nstop on starting runlevel [016]\r\n\r\nrespawn\r\nexec \/sbin\/agetty \/dev\/ttyS1 9600 vt100-nav\r\n\uff5e\r\n# initctl start serial-ttyS1\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n<span style=\"color: #7b68ee;\">\u25a0 securetty\u306b\u8ffd\u52a0<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# vi \/etc\/securetty\r\n\uff5e\r\nttyS1\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n&nbsp;<\/p>\n<p>\u4e00\u65b9\u3001GRUB 2\u306f\u300c\/etc\/default\/grub\u300d\u3092\u7de8\u96c6\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 grub.conf\u306e\u8a2d\u5b9a(\u4f8b)<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# vi \/etc\/default\/grub\r\n\uff5e\r\nGRUB_TIMEOUT=5\r\nGRUB_DISTRIBUTOR=\"$(sed 's, release .*$,,g' \/etc\/system-release)\"\r\nGRUB_DEFAULT=saved\r\nGRUB_DISABLE_SUBMENU=true\r\nGRUB_TERMINAL_OUTPUT=\"serial console\"\r\nGRUB_CMDLINE_LINUX=\"console=tty0 console=ttyS0,9600 console=ttyS1,9600\"\r\nGRUB_DISABLE_RECOVERY=\"true\"\r\nGRUB_TERMINAL=\"console serial\"\r\nGRUB_SERIAL_COMMAND=\"serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1\"\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n\u305d\u306e\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# \/usr\/sbin\/grub2-mkconfig -o \/boot\/grub2\/grub.cfg\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n<span style=\"color: #7b68ee;\">\u25a0 getty\u306e\u8a2d\u5b9a<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# cp \/lib\/systemd\/system\/serial-getty@.service  \/etc\/systemd\/system\/serial-getty@ttyS1.service \r\n# ln -s \/etc\/systemd\/system\/serial-getty@ttyS1.service \/etc\/systemd\/system\/getty.target.wants\/\r\n# systemctl daemon-reload\r\n# systemctl start  serial-getty@ttyS1.service\r\n# systemctl enable serial-getty@ttyS1.service\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n<span style=\"color: #7b68ee;\">\u25a0 securetty\u306e\u8ffd\u52a0<\/span><\/p>\n<table style=\"table-layout:fixed;\">\n<tr>\n<td>\n<div style=\"overflow-x:auto;\">\n<pre>\r\n# vi \/etc\/securetty\r\n\uff5e\r\nttyS1\r\n<\/pre>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<br \/>\n&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u3001\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u63a5\u7d9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff01\uff01\u3053\u308c\u304f\u3089\u3044\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3067\u3059\u304b\u306df\uff08\uff3e\uff3e\uff1b\uff09<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/www.nightmare-yk.com\/?p=1346\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/www.nightmare-yk.com\/?p=1346\" ><\/g:plusone><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>CentOS7\u306b\u306a\u3063\u3066\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u304c\u300cGRUB 2\u300d\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u308c\u306b\u3088\u308a\u3001CentOS6\u306e\u3068\u304d\u3068\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u8a2d\u5b9a\u304c\u5927\u304d\u304f\u5909\u308f\u3063\u305f\u305f\u3081\u3001\u5c11\u3057\u306f\u307e\u308a\u307e\u3057\u305f\u3002\u3002\u3002 \u4eca\u5f8c\u306e\u305f\u3081\u306b\u3082\u30e1\u30e2\u30e1\u30e2\u3006(.. ) \u65e9\u901f\u3067\u3059\u304c\u3001GRUB\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 \u25a0 grub.conf\u306e\u8a2d\u5b9a(\u4f8b)\u203b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1356,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[210,226,227,225,224,22,223,228],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2015\/02\/\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb.jpg?fit=300%2C300","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1346"}],"collection":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1346"}],"version-history":[{"count":13,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1346\/revisions"}],"predecessor-version":[{"id":1358,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1346\/revisions\/1358"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/media\/1356"}],"wp:attachment":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}