{"id":65377,"date":"2022-08-31T11:16:55","date_gmt":"2022-08-31T03:16:55","guid":{"rendered":"http:\/\/www.idc.net\/help\/65377\/"},"modified":"2022-08-31T11:16:55","modified_gmt":"2022-08-31T03:16:55","slug":"linux-%e4%b8%ad%e6%96%87%e5%ad%97%e7%ac%a6%e6%98%be%e7%a4%ba%e7%96%91%e9%9a%be%e8%a7%a3%e5%86%b3%ef%bc%88linux%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba%e9%97%ae%e5%8f%b7%ef%bc%89","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/65377\/","title":{"rendered":"Linux \u4e2d\u6587\u5b57\u7b26\u663e\u793a\u7591\u96be\u89e3\u51b3\uff08linux\u4e2d\u6587\u663e\u793a\u95ee\u53f7\uff09"},"content":{"rendered":"<p>Linux \u7684\u5e94\u7528\u5728\u6240\u6709\u56fd\u5bb6\uff08\u5305\u62ec\u4e2d\u56fd\uff09\u4ee5\u53ca\u65e5\u76ca\u589e\u957f\uff0c\u800c\u5176\u4e2d\u4e00\u4e2a\u6700\u57fa\u7840\u7684\u8981\u6c42\u662f\u6b63\u786e\u663e\u793a\u4e2d\u6587\u5b57\u7b26\uff0c\u751a\u81f3\u662f\u652f\u6301\u4e0d\u540c\u7684\u8bed\u8a00\u7f16\u7801\u5e94\u7528\u3002\u4f46\u5728\u5b9e\u8df5\u4e2d\uff0c\u4eba\u4eec\u901a\u5e38\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u4f7f\u5f97\u4e2d\u6587\u5b57\u7b26\u5728 Linux \u4e2d\u65e0\u6cd5\u6b63\u786e\u663e\u793a\uff0c\u4f1a\u51fa\u73b0\u4e71\u7801\u7b49\u60c5\u51b5\uff0c\u8fd9\u5bf9\u64cd\u4f5c\u4e60\u60ef\u5e26\u6765\u5f88\u591a\u987e\u8651\uff0c\u5c24\u5176\u662f\u4f7f\u7528\u56fd\u9645\u529e\u516c\u8f6f\u4ef6\u7b49\u8f6f\u4ef6\u7684\u573a\u666f\u4e2d\uff0c\u56e0\u6b64\u5982\u4f55\u89e3\u51b3 Linux \u4e2d\u6587\u5b57\u7b26\u663e\u793a\u7591\u96be\uff1f\u4e00\u822c\u6765\u8bf4\uff0c\u6709\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u5c1d\u8bd5\uff0c\u5373\uff1a<\/p>\n<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u786e\u5b9a\u5b57\u7b26\u7f16\u7801\u3002\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u4e00\u822c\u91c7\u7528 utf-8 \u7f16\u7801\u8fdb\u884c\u5b57\u7b26\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\uff1a<\/p>\n<\/p>\n<pre>locale \u2013a<br><\/pre>\n<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u8bbe\u7f6e\u4e2d\u6587\u5b57\u7b26\u73af\u5883\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u540e\u5373\u53ef\u6b63\u5e38\u663e\u793a\uff1a<\/p>\n<\/p>\n<pre>export LC_ALL=\"zh_CN.gb18030\"<br><\/pre>\n<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u66f4\u65b0\u5b57\u7b26\u6b63\u786e\u663e\u793a\u8bbe\u7f6e\u3002\u7531\u4e8e\u7cfb\u7edf\u7f3a\u5c11\u6b63\u786e\u7684\u5b57\u7b26\u663e\u793a\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u91c7\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u66f4\u65b0\uff1a<\/p>\n<\/p>\n<pre>sudo apt-get install language-pack-zh-*<br><\/pre>\n<\/p>\n<p>\u5982\u679c\u8fd9\u4e9b\u6b65\u9aa4\u4ecd\u7136\u65e0\u6cd5\u89e3\u51b3 Linux \u4e2d\u6587\u5b57\u7b26\u663e\u793a\u7591\u96be\u7684\u8bdd\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u68c0\u67e5\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u7f6e\uff0c\u5e76\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u4e86\u4e2d\u6587\u8f93\u5165\u6cd5\uff0c\u4ee5\u53ca\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u662f\u5426\u5f00\u542f\u4e86\u4e2d\u6587\u5b57\u7b26\u652f\u6301\u3002\u6700\u540e\uff0c\u4f1a\u8bdd\u6a21\u5f0f\u4e0b\u53ef\u4ee5\u91c7\u7528\u547d\u4ee4\u91cd\u65b0\u7f16\u7801\u6765\u89e3\u51b3\u663e\u793a\u95ee\u9898\uff1a<\/p>\n<\/p>\n<pre>iconv -f utf8 -t gbk filename.txt<br><\/pre>\n<\/p>\n<p>\u603b\u4e4b\uff0cLinux \u4e2d\u6587\u5b57\u7b26\u663e\u793a\u7591\u96be\u4e0d\u4ec5\u4e0e\u5b57\u7b26\u7f16\u7801\u548c\u8bbe\u7f6e\u7684\u95ee\u9898\u6709\u5173\uff0c\u800c\u4e14\u4e5f\u53ef\u80fd\u4e0e\u8f93\u5165\u6cd5\uff0c\u7cfb\u7edf\u72b6\u6001\u7b49\u6709\u5173\uff0c\u6709\u65f6\u751a\u81f3\u53ef\u80fd\u4e0e\u6587\u672c\u7f16\u8f91\u5668\u672c\u8eab\u7684\u95ee\u9898\u6709\u5173\u3002\u56e0\u6b64\uff0c\u6700\u597d\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u8fdb\u884c\u6d4b\u8bd5\uff0c\u627e\u51fa\u6839\u672c\u539f\u56e0\uff0c\u7136\u540e\u7ec4\u5408\u4e0a\u8ff0\u6b65\u9aa4\u6765\u89e3\u51b3\u8fd9\u4e00\u7591\u96be\u3002<\/p>\n<p><a href=\"http:https:\/\/idc.net\/\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u7684\u5e94\u7528\u5728\u6240\u6709\u56fd\u5bb6\uff08\u5305\u62ec\u4e2d\u56fd\uff09\u4ee5\u53ca\u65e5\u76ca\u589e\u957f\uff0c\u800c\u5176\u4e2d\u4e00\u4e2a\u6700\u57fa\u7840\u7684\u8981\u6c42\u662f\u6b63\u786e\u663e\u793a\u4e2d\u6587\u5b57\u7b26\uff0c\u751a\u81f3\u662f\u652f\u6301\u4e0d\u540c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-65377","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/65377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=65377"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/65377\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=65377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=65377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=65377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}