{"id":3828,"date":"2021-09-18T09:50:27","date_gmt":"2021-09-18T01:50:27","guid":{"rendered":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/?p=3828"},"modified":"2021-09-18T09:52:12","modified_gmt":"2021-09-18T01:52:12","slug":"rhel8%e5%bc%b7%e5%88%b6%e8%a7%a3%e9%99%a4%e8%a8%bb%e5%86%8a","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2021\/09\/rhel8%e5%bc%b7%e5%88%b6%e8%a7%a3%e9%99%a4%e8%a8%bb%e5%86%8a\/","title":{"rendered":"RHEL8\u5f37\u5236\u89e3\u9664\u8a3b\u518a"},"content":{"rendered":"\n<p>\u524d\u5169\u5929\u9047\u5230\u7684\u72c0\u6cc1\u662f\u9019\u6a23\uff0c\u516c\u53f8\u88e1\u7684 RHEL8 \u4e3b\u6a5f\u662f\u8a3b\u518a\u5230 Satellite \u4e0a\uff0c\u4f46 Satellite \u4e3b\u6a5f\u56e0\u70ba\u6a5f\u623f\u8a2d\u5099\u5347\u7d1a\uff0c\u958b\u4e0d\u4e86\u6a5f\uff0c\u53ef\u662f\u9019\u53f0 RHEL8 \u4e3b\u6a5f\u53c8\u6025\u8457\u8981\u5b89\u88dd\u5957\u4ef6\uff0c\u90a3\u5c31\u5f97\u5148\u89e3\u9664\u8a3b\u518a\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e00\u6b65\uff0c\u662f\u5148\u8655\u7406 <code>\/etc\/rhsm\/rhsm.conf<\/code> \uff0c\u8a3b\u518a\u5230 Satellite \u6642\uff0crhsm.conf \u88e1\u7684\u8a2d\u5b9a\u6703\u88ab\u4fee\u6539\uff0c\u8868\u660e\u8a3b\u518a\u5230 Satellite\u3002\u5728\u9019\u88e1\u53ef\u4ee5\u627e\u5230\u5099\u4efd\u7684 rhsm.conf \uff0c\u628a\u9019\u6a94\u6848\u5fa9\u539f\u56de\u53bb\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u6b65\uff0c\u662f\u79fb\u9664\u5957\u4ef6\uff0c\u5728\u8a3b\u518a\u5230 Satellite \u6642\uff0c\u6703\u5b89\u88dd\u4e00\u500b\u5957\u4ef6\uff0c\u9019\u500b\u5957\u4ef6\u5305\u542b\u4e86\u8a3b\u518a\u5230 Satellite \u7684\u8cc7\u8a0a\u4ee5\u53ca\u6191\u8b49\u3002\u5957\u4ef6\u7684\u540d\u7a31\u88e1\u6709 katello-ca \uff0c\u627e\u5230\u4e4b\u5f8c\uff0c\u7528 rpm -e \u6216 yum remove \u79fb\u9664\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e09\u6b65\uff0c\u662f\u79fb\u9664 \/etc\/pki\/consumer \u8ddf \/etc\/pki\/entitlement \uff0c\u9019\u88e1\u6709 subscription-manager \u8a3b\u518a\u5f8c\u53d6\u5f97\u7684\u8cc7\u8a0a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/etc\/pki\/consumer\nrm -rf \/etc\/pki\/entitlement\nsubscription-manager clean<\/code><\/pre>\n\n\n\n<p>\u8655\u7406\u5b8c\u4e4b\u5f8c\uff0c\u5c31\u53ef\u4ee5\u7528 <code>subscription-manager register<\/code> \u4f86\u8a3b\u518a\u5230 Red Hat \u4e86\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u53c3\u8003\u8cc7\u6599<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/access.redhat.com\/solutions\/5338451\">subscription-manager commands fail with &#8216;Network error&#8217;, and a &#8216;NetworkException: HTTP error (400 &#8211; Bad Request)&#8217; error is logged in \/var\/log\/rhsm\/rhsm.log<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u5169\u5929\u9047\u5230\u7684\u72c0\u6cc1\u662f\u9019\u6a23\uff0c\u516c\u53f8\u88e1\u7684 RHEL8 \u4e3b\u6a5f\u662f\u8a3b\u518a\u5230 Satellite \u4e0a\uff0c\u4f46 Satellite \u4e3b\u6a5f\u56e0\u70ba\u6a5f\u623f\u8a2d\u5099\u5347\u7d1a\uff0c\u958b\u4e0d\u4e86\u6a5f\uff0c\u53ef\u662f\u9019\u53f0 RHEL8 \u4e3b\u6a5f\u53c8\u6025\u8457\u8981\u5b89\u88dd\u5957\u4ef6\uff0c\u90a3\u5c31\u5f97\u5148\u89e3\u9664\u8a3b\u518a\u3002 \u7b2c\u4e00\u6b65\uff0c\u662f\u5148\u8655\u7406 \/etc\/rhsm\/rhsm.conf \uff0c\u8a3b\u518a\u5230 Satellite \u6642\uff0crhsm.conf \u88e1\u7684\u8a2d\u5b9a\u6703\u88ab\u4fee\u6539\uff0c\u8868\u660e\u8a3b\u518a\u5230 Satellite\u3002\u5728\u9019\u88e1\u53ef\u4ee5\u627e\u5230\u5099\u4efd\u7684 rhsm.conf \uff0c\u628a\u9019\u6a94\u6848\u5fa9\u539f\u56de\u53bb\u3002 \u7b2c\u4e8c\u6b65\uff0c\u662f\u79fb\u9664\u5957\u4ef6\uff0c\u5728\u8a3b\u518a\u5230 Satellite \u6642\uff0c\u6703\u5b89\u88dd\u4e00\u500b\u5957\u4ef6\uff0c\u9019\u500b\u5957\u4ef6\u5305\u542b\u4e86\u8a3b\u518a\u5230 Satellite \u7684\u8cc7\u8a0a\u4ee5\u53ca\u6191\u8b49\u3002\u5957\u4ef6\u7684\u540d\u7a31\u88e1\u6709 katello-ca \uff0c\u627e\u5230\u4e4b\u5f8c\uff0c\u7528 rpm -e \u6216 yum remove \u79fb\u9664\u3002 \u7b2c\u4e09\u6b65\uff0c\u662f\u79fb\u9664 \/etc\/pki\/consumer \u8ddf \/etc\/pki\/entitlement \uff0c\u9019\u88e1\u6709 subscription-manager \u8a3b\u518a\u5f8c\u53d6\u5f97\u7684\u8cc7\u8a0a\u3002 \u8655\u7406\u5b8c\u4e4b\u5f8c\uff0c\u5c31\u53ef\u4ee5\u7528 subscription-manager register \u4f86\u8a3b\u518a\u5230 Red Hat \u4e86\u3002 \u53c3\u8003\u8cc7\u6599 subscription-manager commands fail with &#8216;Network error&#8217;, and a &#8216;NetworkException: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2021\/09\/rhel8%e5%bc%b7%e5%88%b6%e8%a7%a3%e9%99%a4%e8%a8%bb%e5%86%8a\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;RHEL8\u5f37\u5236\u89e3\u9664\u8a3b\u518a&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[29,218,219],"class_list":["post-3828","post","type-post","status-publish","format-standard","hentry","category-linux-","tag-linux","tag-redhat","tag-rhel"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-ZK","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/3828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=3828"}],"version-history":[{"count":1,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/3828\/revisions"}],"predecessor-version":[{"id":3829,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/3828\/revisions\/3829"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=3828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=3828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=3828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}