{"id":52293,"date":"2024-12-03T13:56:28","date_gmt":"2024-12-03T05:56:28","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52293\/"},"modified":"2024-12-03T13:56:28","modified_gmt":"2024-12-03T05:56:28","slug":"linux-locale%e5%91%bd%e4%bb%a4%e6%9c%89%e4%bb%80%e4%b9%88%e4%bd%9c%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52293\/","title":{"rendered":"linux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>linux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528<\/h1>\n<p>\u600e\u4e48\u5165\u95e8\u6587\u7ae0\u7f16\u7a0b\uff1f\u9700\u8981\u5b66\u4e60\u54ea\u4e9b\u77e5\u8bc6\u70b9\uff1f\u8fd9\u662f\u65b0\u624b\u4eec\u521a\u63a5\u89e6\u7f16\u7a0b\u65f6\u5e38\u89c1\u7684\u95ee\u9898\uff1b\u4e0b\u9762\u7c73\u4e91\u5c31\u6765\u7ed9\u5927\u5bb6\u6574\u7406\u5206\u4eab\u4e00\u4e9b\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u80fd\u591f\u7ed9\u521d\u5b66\u8005\u4e00\u4e9b\u5e2e\u52a9\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u4ecb\u7ecd\u300alinux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528\u300b\uff0c\u6d89\u53ca\u5230\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u6536\u85cf\u4e00\u4e0b<\/p>\n<\/p>\n<blockquote>\n<p>linux locale\u662fLinux\u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0c\u4f7f\u7528locale\u547d\u4ee4\u53ef\u4ee5\u8bbe\u7f6e\u548c\u663e\u793a\u7a0b\u5e8f\u8fd0\u884c\u7684\u8bed\u8a00\u73af\u5883\uff1blocale\u4f1a\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c\u4ee5\u53ca\u5f53\u5730\u7684\u6587\u5316\u4f20\u7edf\u5b9a\u4e49\u4e00\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u65f6\u7684\u8bed\u8a00\u73af\u5883\u3002<\/p>\n<\/blockquote>\n<h2>\u547d\u4ee4\u4ecb\u7ecd<\/h2>\n<p>locale \u662f Linux \u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0c\u5728 Linux \u4e2d\uff0c\u4f7f\u7528 locale \u547d\u4ee4\u6765\u8bbe\u7f6e\u548c\u663e\u793a\u7a0b\u5e8f\u8fd0\u884c\u7684\u8bed\u8a00\u73af\u5883\uff0clocale \u4f1a\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c\u4ee5\u53ca\u5f53\u5730\u7684\u6587\u5316\u4f20\u7edf\u5b9a\u4e49\u4e00\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u65f6\u7684\u8bed\u8a00\u73af\u5883\u3002<\/p>\n<p>\u901a\u8fc7 locale \u6765\u8bbe\u7f6e\u7a0b\u5e8f\u8fd0\u884c\u7684\u4e0d\u540c\u8bed\u8a00\u73af\u5883\uff0clocale \u7531ANSI C\u63d0\u4f9b\u652f\u6301\u3002locale \u7684\u547d\u540d\u89c4\u5219\u4e3a&lt;\u8bed\u8a00&gt;_&lt;\u5730\u533a&gt;.&lt;\u5b57\u7b26\u96c6\u7f16\u7801&gt;\uff0c\u5982zh_CN.UTF-8\uff0czh\u4ee3\u8868\u4e2d\u6587\uff0cCN\u4ee3\u8868\u5927\u9646\u5730\u533a\uff0cUTF-8\u8868\u793a\u5b57\u7b26\u96c6\u3002\u5728locale\u73af\u5883\u4e2d\uff0c\u6709\u4e00\u7ec4\u53d8\u91cf\uff0c\u4ee3\u8868\u56fd\u9645\u5316\u73af\u5883\u4e2d\u7684\u4e0d\u540c\u8bbe\u7f6e\u3002<\/p>\n<h2>locale \u8bbe\u7f6e\u89c4\u5219<\/h2>\n<p>&lt;\u8bed\u8a00&gt;_&lt;\u5730\u533a&gt;.&lt;\u5b57\u7b26\u96c6\u7f16\u7801&gt;&lt;@\u4fee\u6b63\u503c&gt;<\/p>\n<pre>zh_CN.utf8\r\n\r\nzh\uff1a\u8868\u793a\u4e2d\u6587\r\nCN\uff1a\u8868\u793a\u5927\u9646\u5730\u533a\r\nUtf8\uff1a\u8868\u793a\u5b57\u7b26\u96c6\r\n\r\nde_DE.utf-8@euro\r\n\r\nde\uff1a\u8868\u793a\u5fb7\u8bed\r\nDE\uff1a\u8868\u793a\u5fb7\u56fd\r\nUtf-8\uff1a\u8868\u793a\u5b57\u7b26\u96c6\r\neuro\uff1a\u8868\u793a\u6309\u7167\u6b27\u6d32\u4e60\u60ef\u52a0\u4ee5\u4fee\u6b63<\/pre>\n<h2>\u4f7f\u7528\u8be6\u89e3<\/h2>\n<p>\u8bbe\u7f6elocale\u7684\u6839\u672c\u5c31\u662f\u8bbe\u7f6e\u4e00\u7ec4\u603b\u517112\u4e2aLC\u5f00\u5934\u7684\u53d8\u91cf\uff0c\u4e0d\u5305\u62ecLANG\u548cLC_ALL<br \/> locale\u9ed8\u8ba4\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff1a \/usr\/share\/i18n\/locales<\/p>\n<h3>\uff08\u4e00\uff09\u67e5\u770b\u5f53\u524d locale \u8bbe\u7f6e<\/h3>\n<p>\u5217\u51fa\u6240\u6709\u542f\u7528\u7684 locale\uff1a<\/p>\n<pre>[root@htlwk0001host ~]# localeLANG=zh_CN.UTF-8\r\nLC_CTYPE=\"zh_CN.UTF-8\"LC_NUMERIC=\"zh_CN.UTF-8\"LC_TIME=\"zh_CN.UTF-8\"LC_COLLATE=\"zh_CN.UTF-8\"LC_MONETARY=\"zh_CN.UTF-8\"LC_MESSAGES=\"zh_CN.UTF-8\"LC_PAPER=\"zh_CN.UTF-8\"LC_NAME=\"zh_CN.UTF-8\"LC_ADDRESS=\"zh_CN.UTF-8\"LC_TELEPHONE=\"zh_CN.UTF-8\"LC_MEASUREMENT=\"zh_CN.UTF-8\"LC_IDENTIFICATION=\"zh_CN.UTF-8\"LC_ALL=<\/pre>\n<p><strong>\u5206\u522b\u4ecb\u7ecd\u4e0b\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>LANG\uff1aLANG\u7684\u4f18\u5148\u7ea7\u662f\u6700\u4f4e\u7684\uff0c\u5b83\u662f\u6240\u6709LC_*\u53d8\u91cf\u7684\u9ed8\u8ba4\u503c\uff0c\u4e0b\u65b9\u6240\u6709\u4ee5LC_\u5f00\u5934\u53d8\u91cf\uff08LC_ALL\u9664\u5916\uff09\u4e2d\uff0c\u5982\u679c\u5b58\u5728\u6ca1\u6709\u8bbe\u7f6e\u53d8\u91cf\u503c\u7684\u53d8\u91cf\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c06\u4f1a\u4f7f\u7528LANG\u7684\u53d8\u91cf\u503c\u6765\u7ed9\u8fd9\u4e2a\u53d8\u91cf\u8fdb\u884c\u8d4b\u503c\u3002\u5982\u679c\u53d8\u91cf\u6709\u503c\uff0c\u5219\u4fdd\u6301\u4e0d\u53d8<\/p>\n<\/li>\n<li>\n<p>LC_CTYPE\uff1a\u7528\u4e8e\u5b57\u7b26\u5206\u7c7b\u548c\u5b57\u7b26\u4e32\u5904\u7406\uff0c\u63a7\u5236\u6240\u6709\u5b57\u7b26\u7684\u5904\u7406\u65b9\u5f0f\uff0c\u5305\u62ec\u5b57\u7b26\u7f16\u7801\uff0c\u5b57\u7b26\u662f\u5355\u5b57\u8282\u8fd8\u662f\u591a\u5b57\u8282\uff0c\u5982\u4f55\u6253\u5370\u7b49\uff0c\u975e\u5e38\u91cd\u8981\u7684\u4e00\u4e2a\u53d8\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p>LC_NUMERIC\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u975e\u8d27\u5e01\u7684\u6570\u5b57\u663e\u793a<\/p>\n<\/li>\n<li>\n<p>LC_TIME\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u65f6\u95f4\u548c\u65e5\u671f<\/p>\n<\/li>\n<li>\n<p>LC_COLLATE\uff1a\u7528\u4e8e\u6bd4\u8f83\u548c\u6392\u5e8f<\/p>\n<\/li>\n<li>\n<p>LC_MONETARY\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u8d27\u5e01\u5355\u4f4d<\/p>\n<\/li>\n<li>\n<p>LC_MESSAGES\uff1a\u7528\u4e8e\u63a7\u5236\u7a0b\u5e8f\u8f93\u51fa\u65f6\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u4e3b\u8981\u662f\u63d0\u793a\u4fe1\u606f\uff0c\u9519\u8bef\u4fe1\u606f\uff0c\u72b6\u6001\u4fe1\u606f\uff0c\u6807\u9898\uff0c\u6807\u7b7e\uff0c\u6309\u94ae\u548c\u83dc\u5355\u7b49<\/p>\n<\/li>\n<li>\n<p>LC_PAPER\uff1a\u9ed8\u8ba4\u7eb8\u5f20\u5c3a\u5bf8\u5927\u5c0f<\/p>\n<\/li>\n<li>\n<p>LC_NAME\uff1a\u59d3\u540d\u4e66\u5199\u65b9\u5f0f<\/p>\n<\/li>\n<li>\n<p>LC_ADDRESS\uff1a\u5730\u5740\u4e66\u5199\u65b9\u5f0f<\/p>\n<\/li>\n<li>\n<p>LC_TELEPHONE\uff1a\u7535\u8bdd\u53f7\u7801\u4e66\u5199\u65b9\u5f0f<\/p>\n<\/li>\n<li>\n<p>LC_MEASUREMENT\uff1a\u5ea6\u91cf\u8861\u8868\u8fbe\u65b9\u5f0f<\/p>\n<\/li>\n<li>\n<p>LC_IDENTIFICATION\uff1alocale\u5bf9\u81ea\u8eab\u5305\u542b\u4fe1\u606f\u7684\u6982\u8ff0<\/p>\n<\/li>\n<li>\n<p>LC_ALL\uff1a\u5b83\u4e0d\u662f\u73af\u5883\u53d8\u91cf\uff0c\u5b83\u662f\u4e00\u4e2a\u5b8f\uff0c\u5b83\u53ef\u901a\u8fc7\u8be5\u53d8\u91cf\u7684\u8bbe\u7f6e\u8986\u76d6\u6240\u6709LC_*\u53d8\u91cf\uff0c\u8fd9\u4e2a\u53d8\u91cf\u8bbe\u7f6e\u4e4b\u540e\uff0c\u53ef\u4ee5\u5e9f\u9664LC_*\u7684\u8bbe\u7f6e\u503c\uff0c\u4f7f\u5f97\u8fd9\u4e9b\u53d8\u91cf\u7684\u8bbe\u7f6e\u503c\u4e0eLC_ALL\u7684\u503c\u4e00\u81f4\uff0c\u6ce8\u610fLANG\u53d8\u91cf\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4f18\u5148\u7ea7\uff1aLC_ALL &gt; LC_* &gt; LANG<\/p>\n<h3>\uff08\u4e8c\uff09\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u6240\u6709\u53ef\u7528 locale<\/h3>\n<pre>[root@htlwk0001host ~]# locale -aC\r\nC.utf8\r\nen_AG\r\nen_AU\r\nen_AU.utf8\r\nen_BW\r\nen_BW.utf8\r\nen_CA\r\nen_CA.utf8\r\nen_DK\r\nen_DK.utf8\r\nen_GB\r\nen_GB.iso885915\r\nen_GB.utf8\r\nen_HK\r\nen_HK.utf8\r\nen_IE\r\nen_IE@euro\r\nen_IE.utf8\r\nen_IL\r\nen_IN\r\nen_NG\r\nen_NZ\r\nen_NZ.utf8\r\nen_PH\r\nen_PH.utf8\r\nen_SC.utf8\r\nen_SG\r\nen_SG.utf8\r\nen_US\r\nen_US.iso885915\r\nen_US.utf8\r\nen_ZA\r\nen_ZA.utf8\r\nen_ZM\r\nen_ZW\r\nen_ZW.utf8\r\nPOSIX\r\nzh_CN\r\nzh_CN.gb18030\r\nzh_CN.gbk\r\nzh_CN.utf8\r\nzh_HK\r\nzh_HK.utf8\r\nzh_SG\r\nzh_SG.gbk\r\nzh_SG.utf8\r\nzh_TW\r\nzh_TW.euctw\r\nzh_TW.utf8<\/pre>\n<h3>\uff08\u4e09\uff09\u8bbe\u7f6e\u7cfb\u7edf\u7684 locale<\/h3>\n<ol>\n<li>\n<p>\u53ef\u4ee5\u4fee\u6539\/etc\/profile\u6587\u4ef6<br \/> \u4fee\u6539\/etc\/profile\u6587\u4ef6\uff0c\u5728\u6700\u4e0b\u9762\u589e\u52a0<\/p>\n<\/li>\n<\/ol>\n<pre>export LC_ALL=zh_CN.utf8\r\nexport LANG=zh_CN.utf8<\/pre>\n<p>\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528\u547d\u4ee4 source \u4e0b\u914d\u7f6e\u6587\u4ef6\uff0c\u4f7f\u5176\u751f\u6548<\/p>\n<ol>\n<li>\n<p>\u4fee\u6539\/etc\/locale.gen\u6587\u4ef6<\/p>\n<\/li>\n<\/ol>\n<p>\u5c06\u6ce8\u91ca\u6253\u5f00\u5373\u53ef\uff0c\u4fee\u6539\u5b8c\u6210\u540e\uff0c\u6267\u884c\u4e0b locale-gen \u547d\u4ee4\u4f7f\u5176\u751f\u6548<\/p>\n<pre>#en_SG ISO-8859-1\r\nen_US.UTF-8 UTF-8\r\n#en_US ISO-8859-1<\/pre>\n<ol>\n<li>\n<p>\u547d\u4ee4\u884c\u6a21\u5f0f<\/p>\n<\/li>\n<\/ol>\n<pre>localectl set-locale LANG=en_US.UTF-8<\/pre>\n<ol>\n<li>\n<p>\u4fee\u6539\/etc\/default\/locale<br \/> \u6ce8\u9500\u4e00\u4e0b\uff0c\u4f7f\u5176\u751f\u6548<\/p>\n<\/li>\n<\/ol>\n<pre>LANG=\u201cen_US.UTF-8\u201d\r\nLANGUAGE=\u201cen_US:en\u201d<\/pre>\n<ol>\n<li>\n<p>\u521b\u5efa\/etc\/locale.conf\u6587\u4ef6<\/p>\n<\/li>\n<\/ol>\n<pre>LANG=en_AU.UTF-8\r\nLC_COLLATE=C\r\nLC_TIME=en_DK.UTF-8\r\n<\/pre>\n<p>\u4eca\u5929\u5173\u4e8e\u300alinux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528 \u600e\u4e48\u5165\u95e8\u6587\u7ae0\u7f16\u7a0b\uff1f\u9700\u8981\u5b66\u4e60\u54ea\u4e9b\u77e5\u8bc6\u70b9\uff1f\u8fd9\u662f\u65b0\u624b\u4eec\u521a\u63a5\u89e6\u7f16\u7a0b\u65f6\u5e38\u89c1\u7684\u95ee\u9898\uff1b\u4e0b\u9762\u7c73\u4e91\u5c31\u6765\u7ed9\u5927\u5bb6\u6574\u7406\u5206\u4eab\u4e00\u4e9b\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u80fd\u591f\u7ed9\u521d\u5b66\u8005\u4e00\u4e9b\u5e2e\u52a9\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u4ecb\u7ecd\u300alinux locale\u547d\u4ee4\u6709\u4ec0\u4e48\u4f5c\u7528\u300b\uff0c\u6d89\u53ca\u5230\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u6536\u85cf\u4e00\u4e0b linux locale\u662fLinux\u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0c\u4f7f\u7528locale\u547d\u4ee4\u53ef\u4ee5\u8bbe\u7f6e\u548c\u663e\u793a\u7a0b\u5e8f\u8fd0\u884c\u7684\u8bed\u8a00\u73af\u5883\uff1blocale\u4f1a\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c\u4ee5\u53ca\u5f53\u5730\u7684\u6587\u5316\u4f20\u7edf\u5b9a\u4e49\u4e00\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u65f6\u7684\u8bed\u8a00\u73af\u5883\u3002 \u547d\u4ee4\u4ecb\u7ecd locale \u662f Linux \u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0c\u5728 Linux \u4e2d\uff0c\u4f7f\u7528 locale \u547d\u4ee4\u6765\u8bbe\u7f6e\u548c\u663e\u793a\u7a0b\u5e8f\u8fd0\u884c\u7684\u8bed\u8a00\u73af\u5883\uff0clocale \u4f1a\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c\u4ee5\u53ca\u5f53\u5730\u7684\u6587\u5316\u4f20\u7edf\u5b9a\u4e49\u4e00\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u65f6\u7684\u8bed\u8a00\u73af\u5883\u3002 \u901a\u8fc7 locale \u6765\u8bbe\u7f6e\u7a0b\u5e8f\u8fd0\u884c\u7684\u4e0d\u540c\u8bed\u8a00\u73af\u5883\uff0clocale \u7531ANSI C\u63d0\u4f9b\u652f\u6301\u3002locale \u7684\u547d\u540d\u89c4\u5219\u4e3a&lt;\u8bed\u8a00&gt;_&lt;\u5730\u533a&gt;.&lt;\u5b57\u7b26\u96c6\u7f16\u7801&gt;\uff0c\u5982zh_CN.UTF-8\uff0czh\u4ee3\u8868\u4e2d\u6587\uff0cCN\u4ee3\u8868\u5927\u9646\u5730\u533a\uff0cUTF-8\u8868\u793a\u5b57\u7b26\u96c6\u3002\u5728locale\u73af\u5883\u4e2d\uff0c\u6709\u4e00\u7ec4\u53d8\u91cf\uff0c\u4ee3\u8868\u56fd\u9645\u5316\u73af\u5883\u4e2d\u7684\u4e0d\u540c\u8bbe\u7f6e\u3002 locale \u8bbe\u7f6e\u89c4\u5219 &lt;\u8bed\u8a00&gt;_&lt;\u5730\u533a&gt;.&lt;\u5b57\u7b26\u96c6\u7f16\u7801&gt;&lt;@\u4fee\u6b63\u503c&gt; zh_CN.utf8 zh\uff1a\u8868\u793a\u4e2d\u6587 CN\uff1a\u8868\u793a\u5927\u9646\u5730\u533a Utf8\uff1a\u8868\u793a\u5b57\u7b26\u96c6 de_DE.utf-8@euro de\uff1a\u8868\u793a\u5fb7\u8bed DE\uff1a\u8868\u793a\u5fb7\u56fd Utf-8\uff1a\u8868\u793a\u5b57\u7b26\u96c6 euro\uff1a\u8868\u793a\u6309\u7167\u6b27\u6d32\u4e60\u60ef\u52a0\u4ee5\u4fee\u6b63 \u4f7f\u7528\u8be6\u89e3 \u8bbe\u7f6elocale\u7684\u6839\u672c\u5c31\u662f\u8bbe\u7f6e\u4e00\u7ec4\u603b\u517112\u4e2aLC\u5f00\u5934\u7684\u53d8\u91cf\uff0c\u4e0d\u5305\u62ecLANG\u548cLC_ALL locale\u9ed8\u8ba4\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff1a \/usr\/share\/i18n\/locales \uff08\u4e00\uff09\u67e5\u770b\u5f53\u524d locale \u8bbe\u7f6e \u5217\u51fa\u6240\u6709\u542f\u7528\u7684 locale\uff1a [root@htlwk0001host ~]# localeLANG=zh_CN.UTF-8 LC_CTYPE=&#8221;zh_CN.UTF-8&#8243;LC_NUMERIC=&#8221;zh_CN.UTF-8&#8243;LC_TIME=&#8221;zh_CN.UTF-8&#8243;LC_COLLATE=&#8221;zh_CN.UTF-8&#8243;LC_MONETARY=&#8221;zh_CN.UTF-8&#8243;LC_MESSAGES=&#8221;zh_CN.UTF-8&#8243;LC_PAPER=&#8221;zh_CN.UTF-8&#8243;LC_NAME=&#8221;zh_CN.UTF-8&#8243;LC_ADDRESS=&#8221;zh_CN.UTF-8&#8243;LC_TELEPHONE=&#8221;zh_CN.UTF-8&#8243;LC_MEASUREMENT=&#8221;zh_CN.UTF-8&#8243;LC_IDENTIFICATION=&#8221;zh_CN.UTF-8&#8243;LC_ALL= \u5206\u522b\u4ecb\u7ecd\u4e0b\uff1a LANG\uff1aLANG\u7684\u4f18\u5148\u7ea7\u662f\u6700\u4f4e\u7684\uff0c\u5b83\u662f\u6240\u6709LC_*\u53d8\u91cf\u7684\u9ed8\u8ba4\u503c\uff0c\u4e0b\u65b9\u6240\u6709\u4ee5LC_\u5f00\u5934\u53d8\u91cf\uff08LC_ALL\u9664\u5916\uff09\u4e2d\uff0c\u5982\u679c\u5b58\u5728\u6ca1\u6709\u8bbe\u7f6e\u53d8\u91cf\u503c\u7684\u53d8\u91cf\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c06\u4f1a\u4f7f\u7528LANG\u7684\u53d8\u91cf\u503c\u6765\u7ed9\u8fd9\u4e2a\u53d8\u91cf\u8fdb\u884c\u8d4b\u503c\u3002\u5982\u679c\u53d8\u91cf\u6709\u503c\uff0c\u5219\u4fdd\u6301\u4e0d\u53d8 LC_CTYPE\uff1a\u7528\u4e8e\u5b57\u7b26\u5206\u7c7b\u548c\u5b57\u7b26\u4e32\u5904\u7406\uff0c\u63a7\u5236\u6240\u6709\u5b57\u7b26\u7684\u5904\u7406\u65b9\u5f0f\uff0c\u5305\u62ec\u5b57\u7b26\u7f16\u7801\uff0c\u5b57\u7b26\u662f\u5355\u5b57\u8282\u8fd8\u662f\u591a\u5b57\u8282\uff0c\u5982\u4f55\u6253\u5370\u7b49\uff0c\u975e\u5e38\u91cd\u8981\u7684\u4e00\u4e2a\u53d8\u91cf\u3002 LC_NUMERIC\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u975e\u8d27\u5e01\u7684\u6570\u5b57\u663e\u793a LC_TIME\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u65f6\u95f4\u548c\u65e5\u671f LC_COLLATE\uff1a\u7528\u4e8e\u6bd4\u8f83\u548c\u6392\u5e8f LC_MONETARY\uff1a\u7528\u4e8e\u683c\u5f0f\u5316\u8d27\u5e01\u5355\u4f4d LC_MESSAGES\uff1a\u7528\u4e8e\u63a7\u5236\u7a0b\u5e8f\u8f93\u51fa\u65f6\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u4e3b\u8981\u662f\u63d0\u793a\u4fe1\u606f\uff0c\u9519\u8bef\u4fe1\u606f\uff0c\u72b6\u6001\u4fe1\u606f\uff0c\u6807\u9898\uff0c\u6807\u7b7e\uff0c\u6309\u94ae\u548c\u83dc\u5355\u7b49 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52293","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52293"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52293\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}