{"id":433,"date":"2023-07-01T08:29:00","date_gmt":"2023-07-01T00:29:00","guid":{"rendered":"https:\/\/www.wangzheduo.com\/?p=433"},"modified":"2023-07-01T08:29:00","modified_gmt":"2023-07-01T00:29:00","slug":"centos-7-6%e5%8d%87%e7%ba%a7%e5%88%b0centos-7-9","status":"publish","type":"post","link":"https:\/\/www.wangzheduo.com\/?p=433","title":{"rendered":"CentOS 7.6\u5347\u7ea7\u5230CentOS 7.9"},"content":{"rendered":"<p>\u8981\u5c06CentOS 7.6\u5347\u7ea7\u5230CentOS 7.9\uff0c\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u5907\u4efd\u6570\u636e\uff1a\u5728\u8fdb\u884c\u5347\u7ea7\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5148\u5907\u4efd\u91cd\u8981\u7684\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u610f\u5916\u53d1\u751f\u3002<\/li>\n<li>\u66f4\u65b0\u5f53\u524d\u7cfb\u7edf\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u5f53\u524dCentOS 7.6\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u8f6f\u4ef6\u5305\u548c\u4f9d\u8d56\u9879\u9ed8\u8ba4\u5347\u7ea7\u6700\u65b0\uff1a\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\">sql<button class=\"flex ml-auto gap-2\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-sql\">sudo yum <span class=\"hljs-keyword\">update<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\u5b89\u88c5\u5347\u7ea7\u5de5\u5177\uff1a\u786e\u4fdd\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5<code>yum-utils<\/code>\u8f6f\u4ef6\u5305\uff0c\u5b83\u5305\u542b\u4e86\u7528\u4e8e\u5347\u7ea7\u7684\u5de5\u5177\u3002\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\"><button class=\"flex ml-auto gap-2\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs\">sudo yum install yum-utils<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\u5982\u679c\u9700\u8981\u6307\u5b9a\u7248\u672c\uff0c\u8fd0\u884c\u5347\u7ea7\u547d\u4ee4\uff0c\u4e0d\u9700\u8981\u5c31\u4e0d\u5fc5\u6267\u884c\uff1a\u4f7f\u7528<code>yum<\/code>\u547d\u4ee4\u8fdb\u884c\u7cfb\u7edf\u5347\u7ea7\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\">css<button class=\"flex ml-auto gap-2\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-css\">sudo yum <span class=\"hljs-attr\">--releasever<\/span>=<span class=\"hljs-number\">7.9<\/span> update<br \/>\n<\/code><\/div>\n<\/div>\n<p>\u8fd9\u5c06\u5347\u7ea7\u60a8\u7684CentOS\u7cfb\u7edf\u52307.9\u7248\u672c\u3002<code>--releasever=7.9<\/code>\u53c2\u6570\u6307\u5b9a\u8981\u5347\u7ea7\u5230\u7684\u7248\u672c\u3002<\/li>\n<li>\u5b8c\u6210\u5347\u7ea7\uff1a\u7b49\u5f85\u5347\u7ea7\u8fc7\u7a0b\u5b8c\u6210\u3002\u8fd9\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5177\u4f53\u65f6\u95f4\u53d6\u51b3\u4e8e\u7cfb\u7edf\u7684\u914d\u7f6e\u548c\u7f51\u7edc\u901f\u5ea6\u3002<\/li>\n<li>\u91cd\u542f\u7cfb\u7edf\uff1a\u5347\u7ea7\u5b8c\u6210\u540e\uff0c\u5efa\u8bae\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\"><button class=\"flex ml-auto gap-2\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs\">sudo reboot<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\u9a8c\u8bc1\u7248\u672c\uff1a\u91cd\u65b0\u542f\u52a8\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1CentOS\u7684\u7248\u672c\u548c\u5185\u6838\u7248\u672c\uff1a\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\">bash<button class=\"flex ml-auto gap-2\">Copy code<\/button><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\"><span class=\"hljs-built_in\">cat<\/span> \/etc\/redhat-release<br \/>\n<span class=\"hljs-built_in\">uname<\/span> -r<br \/>\n<\/code><\/div>\n<\/div>\n<p>\u5982\u679c\u7248\u672c\u548c\u5185\u6838\u90fd\u663e\u793a\u4e3a7.9\uff0c\u5219\u5347\u7ea7\u6210\u529f\u3002<\/li>\n<\/ol>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u63d0\u793a\u548c\u786e\u8ba4\u7684\u6b65\u9aa4\uff0c\u6839\u636e\u60a8\u7684\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u5728\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u4fdd\u6301\u7cfb\u7edf\u7a33\u5b9a\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u4ee5\u4fbf\u80fd\u591f\u6210\u529f\u4e0b\u8f7d\u548c\u5b89\u88c5\u66f4\u65b0\u3002<\/p>\n<p>\u5efa\u8bae\u5728\u8fdb\u884c\u7cfb\u7edf\u5347\u7ea7\u4e4b\u524d\uff0c\u8be6\u7ec6\u9605\u8bfbCentOS\u5b98\u65b9\u6587\u6863\u548c\u76f8\u5173\u6587\u6863\u8d44\u6e90\uff0c\u4ee5\u4e86\u89e3\u66f4\u591a\u6709\u5173\u5347\u7ea7\u8fc7\u7a0b\u7684\u7ec6\u8282\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u5c06CentOS 7.6\u5347\u7ea7\u5230CentOS 7.9\uff0c\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a \u5907\u4efd\u6570\u636e\uff1a\u5728\u8fdb\u884c\u5347\u7ea7\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5148\u5907\u4efd\u91cd\u8981\u7684\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u610f\u5916\u53d1\u751f\u3002 \u66f4\u65b0\u5f53\u524d\u7cfb\u7edf\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u5f53\u524dCent&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-centos7"],"_links":{"self":[{"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=433"}],"version-history":[{"count":1,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wangzheduo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}