{"id":5202,"date":"2022-04-13T15:21:25","date_gmt":"2022-04-13T06:21:25","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=5202"},"modified":"2023-06-27T20:52:12","modified_gmt":"2023-06-27T11:52:12","slug":"rhel%e3%81%ae%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa%e3%81%ae%e3%83%9f%e3%83%a9%e3%83%bc%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/5202","title":{"rendered":"RHEL 8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30df\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\uff01"},"content":{"rendered":"<p>RHEL 8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30df\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u3066\u3044\u306a\u3044\u4ed6\u306e\u30b5\u30fc\u30d0\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u767b\u9332\u6e08\u307f\u306eRHEL\u3092\u6e96\u5099\u3059\u308b\uff01<\/h2>\n<p>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u767b\u9332\u6e08\u307f\u306eRHEL\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf repolist\r\nUpdating Subscription Management repositories.\r\nrepo id                                         repo name\r\nrhel-8-for-x86_64-appstream-rpms                Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)\r\nrhel-8-for-x86_64-baseos-rpms                   Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)\r\n<\/pre>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30df\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf install yum-utils createrepo httpd\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u540c\u671f\u3059\u308b\uff01<\/h2>\n<p>RHEL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u540c\u671f\u3057\u307e\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30b5\u30a4\u30ba\u306f\u3001\u5de8\u5927\u306a\u306e\u3067\u5927\u5bb9\u91cf\u306e\u9818\u57df\u3092\u6e96\u5099\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n# reposync -p \/var\/www\/html --download-metadata --repo=rhel-8-for-x86_64-baseos-rpms\r\n# reposync -p \/var\/www\/html --download-metadata --repo=rhel-8-for-x86_64-appstream-rpms\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u306bHTTP\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3059\u308b\uff01<\/h2>\n<p>SELINUX\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u306bHTTP\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2,3,4,5]; title: ; notranslate\" title=\"\">\r\n# systemctl enable httpd\r\n# systemctl start httpd\r\n# echo Apache on RHEL 8 &gt; \/var\/www\/html\/index.html\r\n# firewall-cmd --add-service=http --permanent\r\n# firewall-cmd --add-service=http\r\n<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u4ee5\u4e0b\u306eURL\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cRed Hat Enterprise Linux Test Page\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nhttp:\/\/&lt;\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3059\u308b\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\r\n<\/pre>\n<h2>\u30df\u30e9\u30fc\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5074\u306e\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>\u30df\u30e9\u30fc\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5074\u306e\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/yum.repos.d\/rhel_http_repo.repo\r\n&#x5B;BaseOS_repo_http]\r\nname=RHEL_8.0_x86_64_HTTP BaseOS\r\nbaseurl=&quot;http:\/\/&lt;\u30ea\u30dd\u30b8\u30c8\u30ea\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\/rhel8\/rhel-8-for-x86_64-baseos-rpms&quot;\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-redhat-release\r\n\r\n&#x5B;AppStream_repo_http]\r\nname=RHEL_8.0_x86_64_HTTP AppStream\r\nbaseurl=&quot;http:\/\/&lt;\u30ea\u30dd\u30b8\u30c8\u30ea\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\/rhel8\/rhel-8-for-x86_64-appstream-rpms&quot;\r\ngpgcheck=1\r\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-redhat-release\r\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf repolist\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\n\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\n\r\nrepo id                                                repo name\r\nAppStream_repo_http                                    RHEL_8.0_x86_64_HTTP AppStream\r\nBaseOS_repo_http                                       RHEL_8.0_x86_64_HTTP BaseOS\r\n<\/pre>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u53ef\u80fd\u304b\u3001dnf\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf update\r\n<\/pre>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/access.redhat.com\/solutions\/23016\" target=\"_blank\" rel=\"noopener\">How to create a local mirror of the latest update for Red Hat Enterprise Linux 5, 6, 7, 8 without using Satellite server?<\/a><\/li>\n<li><a href=\"https:\/\/www.redhat.com\/en\/technologies\/linux-platforms\/enterprise-linux\" target=\"_blank\" rel=\"noopener\">Red Hat Enterprise Linux<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/4965\" ><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\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_rhel_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H8WqP7\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41Hsgz5kRSL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL 8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30df\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u3066\u3044\u306a\u3044\u4ed6\u306e\u30b5\u30fc\u30d0\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5291,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[308,315,649,319],"class_list":["post-5202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rhel-packages","tag-rhel","tag-rhel-8","tag-649","tag-319"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5202","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=5202"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5202\/revisions"}],"predecessor-version":[{"id":12646,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/5202\/revisions\/12646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5291"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=5202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=5202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=5202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}