{"id":5108,"date":"2022-04-11T08:42:16","date_gmt":"2022-04-10T23:42:16","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=5108"},"modified":"2023-06-21T06:53:52","modified_gmt":"2023-06-20T21:53:52","slug":"aws-ec2%e3%81%a7red-hut-enterprise-linux-8%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/5108","title":{"rendered":"AWS EC2\u3067Red Hat Enterprise Linux 8\u3092\u4f7f\u7528\u3059\u308b\uff01"},"content":{"rendered":"<p>AWS\u306eEC2\u3092\u4f7f\u7528\u3057\u3066\u3001\u300cRed Hat Enterprise Linux 8\u300d\uff08RHEL 8\uff09\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS Management Console\u306e\u753b\u9762\u3092\u958b\u304f<\/h2>\n<p>AWS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u300cAWS Management Console\u300d\u3092\u958b\u304d\u307e\u3059\u3002\u300cLaunch a virtual machine with EC2\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_001a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2016\" srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_001a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_001a-300x206.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Step 1: Choose an Amazon Machine Image (AMI)<\/h2>\n<p>AMI\u306e\u9078\u629e\u753b\u9762\u3067\u3001\u300cRed Hat Enterprise Linux 8 (HVM), SSD Volume Type\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_002a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2018 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_002a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_002a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Step 2: Choose an Instance Type<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u300ci2.micro\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u30021CPU\u30011GB\u306e\u30e1\u30e2\u30ea\u300110GB\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_003a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2019 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_003a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_003a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Step 7: Review Instance Launch<\/h2>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5\u524d\u306b\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5\u8a73\u7d30\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_004a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2020 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_004a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_004a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_005a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2021 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_005a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_005a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Select an existing key pair or create a new key pair<\/h2>\n<p>\u300cCreate a new key pair\u300d\u3068\u300cKey pair name\u300d\u3092\u5165\u529b\u3057\u3066\u3001\u30ad\u30fc\u30da\u30a2\u3092\u4f5c\u6210\u3057\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_006a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2022 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_006a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_006a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u5b8c\u4e86\u3057\u305f\u3089\u3001\u300cLaunch Instances\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_007a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2023 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_007a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_007a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Launch Status<\/h2>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8d77\u52d5\u304c\u958b\u59cb\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3001\u300cView Instances\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_008a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2024 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_008a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_008a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Instance State\u306e\u78ba\u8a8d<\/h2>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e00\u89a7\u753b\u9762\u306e\u300cLaunch Status\u300d\u306e\u6b04\u304c\u3001\u300crunning\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_009a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2025 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_009a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_009a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>Connect To Your Instance<\/h2>\n<p>\u300cConnect\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001SSH\u3067\u306e\u63a5\u7d9a\u65b9\u6cd5\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u307e\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3068\u3066\u3082\u52a9\u304b\u308a\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_010a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2026 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_010a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_010a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>SSH\u3067\u300cRHEL 8\u300d\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30ed\u30b0\u30a4\u30f3<\/h2>\n<p>\u4ee5\u4e0b\u3001Ubuntu\u306e\u4f8b\u3067\u3059\u304c\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u9375\u3092\"~\/.ssh\"\u306b\u4fdd\u7ba1\u3057\u3066\u3001SSH\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u203bWindows\u3067\u306f\u3001TeraTerm Pro\u3084Putty\u7b49\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u7528\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [10]; title: ; notranslate\" title=\"\">\r\n$ ls -l\r\ntotal 8\r\n-rw-r--r-- 1 sysadm001 sysadm001 1692 Dec 14 08:49 aws001.pem\r\n-rw-r--r-- 1 sysadm001 sysadm001 1776 Dec  5 00:42 known_hosts\r\n$ chmod 400 aws001.pem\r\n$ ls -l\r\ntotal 8\r\n-r-------- 1 sysadm001 sysadm001 1692 Dec 14 08:49 aws001.pem\r\n-rw-r--r-- 1 sysadm001 sysadm001 1776 Dec  5 00:42 known_hosts\r\n$ ssh -i &quot;aws001.pem&quot; ec2-user@ec2-13-58-190-51.us-east-2.compute.amazonaws.com\r\n<\/pre>\n<h2>\u300cRHEL 8\u300d\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3<\/h2>\n<p>\u4f7f\u7528\u304c\u7d42\u308f\u3063\u305f\u3089\u3001Red Hat Enterprise Linux 8\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u3001\u300csudo poweroff\u300d\u7b49\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e00\u89a7\u753b\u9762\u3067\u300cLaunch Status\u300d\u306e\u6b04\u304c\u3001\u300cstopped\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4f7f\u7528\u3057\u305f\u307e\u307e\u306b\u3059\u308b\u3068\u3001\u8ab2\u91d1\u304c\u7d9a\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u3053\u307e\u3081\u306a\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u5fc3\u304c\u3051\u307e\u3057\u3087\u3046\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_011a.png\" alt=\"\" width=\"768\" height=\"527\" class=\"alignnone size-full wp-image-2027 lazyload\" data-srcset=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_011a.png 768w, https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2019\/12\/aws_redhut8_011a-300x206.png 300w\" data-sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2>\u30b3\u30b9\u30c8\u7ba1\u7406\u3082\u5fd8\u308c\u305a\u306b\uff01<\/h2>\n<p>\u4f7f\u7528\u304c\u7d42\u308f\u3063\u305f\u3089\u3082\u3046\u4e00\u3064\u884c\u3063\u3066\u304a\u304d\u305f\u3044\u3053\u3068\u304c\u3001\u30b3\u30b9\u30c8\u306e\u78ba\u8a8d\u3067\u3059\u3002\u300cService\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u300cAWS Cost Management\u300d\u3092\u9078\u629e\u3057\u3066\u3001\u304b\u304b\u3063\u305f\u30b3\u30b9\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u305f\u3060\u3051\u3067\u3082\u30b3\u30b9\u30c8\u306f\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u304c\u30011\u30c9\u30eb\u3082\u304b\u304b\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e00\u89a7\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u6ce8\u610f<\/h2>\n<p>\u4f5c\u3063\u305f\u306f\u305a\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u4e8b\u614b\u304c\u306a\u305c\u304b\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u6642\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e00\u89a7\u306e\u53f3\u4e0a\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u4f55\u304b\u306e\u62cd\u5b50\u306b\u3001\u30ea\u30fc\u30b8\u30e7\u30f3\u304c\u5207\u308a\u66ff\u308f\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u3001\u6b63\u3057\u3044\u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AWS\u306eEC2\u3092\u4f7f\u7528\u3057\u3066\u3001\u300cRed Hat Enterprise Linux 8\u300d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002GUI\u306e\u753b\u9762\u3060\u3051\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3067\u304d\u3001SSH\u306b\u3088\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306e\u63a5\u7d9a\u3082\u3001\u30ac\u30a4\u30c9\u306b\u5f93\u3063\u3066\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8161\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS\u306eEC2\u3092\u4f7f\u7528\u3057\u3066\u3001\u300cRed Hat Enterprise Linux 8\u300d\uff08RHEL 8\uff09\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":8172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[553],"tags":[288,481,308,315],"class_list":["post-5108","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computing-aws","tag-aws","tag-ec2","tag-rhel","tag-rhel-8"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=5108"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5108\/revisions"}],"predecessor-version":[{"id":12482,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5108\/revisions\/12482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/8172"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=5108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=5108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=5108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}