{"id":17,"date":"2023-09-09T17:42:32","date_gmt":"2023-09-09T09:42:32","guid":{"rendered":"http:\/\/blog.wowanka.com\/?p=17"},"modified":"2023-09-09T17:42:32","modified_gmt":"2023-09-09T09:42:32","slug":"linux%e4%bf%ae%e6%94%b9%e4%b8%ad%e6%96%87","status":"publish","type":"post","link":"https:\/\/blog.wowanka.com\/index.php\/2023\/09\/09\/linux%e4%bf%ae%e6%94%b9%e4%b8%ad%e6%96%87\/","title":{"rendered":"linux\u4fee\u6539\u4e2d\u6587"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.cnblogs.com\/life-x-yk\/articles\/16059097.html\">CentOS 8 \u4fee\u6539\u4e2d\u6587<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  yum <strong>install<\/strong> glibc-common\n\n  yum <strong>install<\/strong> -y langpacks-zh_CN\n  \n  vim \/etc\/locale.conf\n  \u5728\u91cc\u9762\u628aen_US\u6539\u6210zh_CN\n  \u91cd\u542f\uff0c\u8bbe\u7f6e\u91cc\u9762\u8bed\u8a00\u5c31\u591a\u4e86\u4e00\u4e2a\u4e2d\u6587\u9009\u9879\uff0c\u7136\u540e\u5c31\u9009\u4e2d\u91cd\u542f\u5c31\u597d\u4e86<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>  yum <strong>install<\/strong> glibc-common\n\n  yum <strong>install<\/strong> -y langpacks-zh_CN\n  \n  vim \/etc\/locale.conf\n  \u5728\u91cc\u9762\u628aen_US\u6539\u6210zh_CN<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu\u4fee\u6539\u4e2d\u6587<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo update-locale LANG=LANG=zh_CN.UTF-8 LANGUAGE\n\u6216\n$ sudo localectl set-locale LANG=zh_CN.UTF-8\n\u6216\n$ export LANG=zh_CN.UTF-8<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u3001\u5b89\u88c5\u4e2d\u6587\u652f\u6301\u5305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\r\nsudo apt-get install language-pack-zh-hans<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e8c\u3001\u8bbe\u7f6e\u8bed\u8a00\u652f\u6301<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1\u3001\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a\r\n\r\nsudo dpkg-reconfigure locales\r\n2\u3001\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u9009\u62e9\u201czh_CN.UTF-8\u201d\uff0c\u5e76\u4f7f\u7528\u7a7a\u683c\u952e\u6765\u9009\u5b9a\u3002\r\n\r\n3\u3001\u9009\u62e9\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u91cd\u542f\u7cfb\u7edf\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 8 \u4fee\u6539\u4e2d\u6587 Ubuntu\u4fee\u6539\u4e2d\u6587 \u4e00\u3001\u5b89\u88c5\u4e2d\u6587\u652f\u6301\u5305 \u4e8c\u3001\u8bbe\u7f6e\u8bed\u8a00\u652f\u6301<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":1,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wowanka.com\/index.php\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}