{"id":290781,"date":"2024-04-08T21:18:00","date_gmt":"2024-04-08T13:18:00","guid":{"rendered":"https:\/\/lrxjmw.cn\/lzwlmlczzbkp.html"},"modified":"2024-04-08T21:18:00","modified_gmt":"2024-04-08T13:18:00","slug":"lzwlmlczzbkp","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzwlmlczzbkp.html","title":{"rendered":"linux putty\u4e2d\u6587\u4e71\u7801 Linux\u64cd\u4f5c\u8005\u5fc5\u770b\uff1aPutty\u9047\u4e2d\u6587\u7f16\u7801\u95ee\u9898\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"

\u8eab\u4e3a\u8d44\u6df1Linux<\/a>\u64cd\u4f5c\u8005\uff0c\u6211\u4eec\u5e38\u5229\u7528\u5982Putty\u8fd9\u7c7b\u8fdc\u7aef\u8fde\u7ebf\u8f6f\u4ef6\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u7ba1\u7406\u3002\u7136\u800c\uff0c\u5728\u4e0eLinux\u670d\u52a1\u5668\u76f8\u8fde\u8fc7\u7a0b\u4e2d\uff0c\u4e00\u65e6\u9762\u4e34\u4e2d\u6587\u7f16\u7801\u9519\u8bef\u7684\u969c\u788d\uff0c\u4fbf\u52bf\u5fc5\u4e25\u91cd\u5f71\u54cd\u5230\u6211\u4eec\u7684\u65e5\u5e38\u5de5\u4f5c\u53ca\u5b66\u4e60\u6548\u7387\u3002\u672c\u7bc7\u6587\u7ae0\u5c06\u6df1\u5165\u5256\u6790Linux Putty\u4e2d\u7684\u4e2d\u6587\u7f16\u7801\u95ee\u9898linux\u57f9\u8bad\u673a\u6784\uff0c\u5e76\u63d0\u4f9b\u53ef\u884c\u7684\u5b9e\u7528\u65b9\u6cd5\u4ee5\u4f9b\u53c2\u8003\uff0c\u534f\u52a9\u5404\u4f4d\u5171\u514b\u6b64\u96be\u5173\u3002<\/p>\n

1.\u4e2d\u6587\u4e71\u7801\u95ee\u9898\u7684\u539f\u56e0<\/b><\/p>\n

\u6b32\u89e3\u51b3\u4e2d\u6587\u4e71\u7801\u95ee\u9898\uff0c\u5173\u952e\u5728\u4e8e\u63a2\u660e\u5176\u4ea7\u751f\u4e4b\u56e0\u3002\u5728Linux\u64cd\u4f5c\u7cfb\u7edf<\/a>\u73af\u5883\u4e0b\uff0c\u5b57\u7b26\u7f16\u7801\u81f3\u5173\u91cd\u8981\u3002\u82e5\u7ec8\u7aef\u4e0e\u670d\u52a1\u95f4\u7684\u5b57\u7b26\u7f16\u7801\u4e0d\u5339\u914d\uff0c\u5c31\u6613\u5f15\u53d1\u4e71\u7801\u73b0\u8c61\u3002\u4f8b\u5982\uff0c\u8fdc\u7a0b\u8fde\u63a5\u5de5\u5177Putty\u5728\u9ed8\u8bb8\u8bbe\u5b9a\u65f6\uff0c\u4fbf\u53ef\u80fd\u65e0\u6cd5\u51c6\u786e\u5448\u73b0\u4e2d\u6587\u5b57\u7b26\uff0c\u4ece\u800c\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n

\u5728\u4f17\u591aLinux\u670d\u52a1\u5668\u64cd\u4f5c\u4e2d\uff0c\u5e38\u5e38\u4f1a\u9047\u5230\u4ee5UTF-8\u7f16\u7801\u5bf9\u5b57\u7b26\u8fdb\u884c\u5904\u7406\u7684\u60c5\u666f\uff0c\u7136\u800c\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4e0ePutty\u5efa\u7acb\u8fde\u63a5\u5e76\u9009\u7528GBK\u3001GB2312\u7b49\u5176\u4ed6\u7f16\u7801\u683c\u5f0f\uff0c\u4fbf\u53ef\u80fd\u5f15\u53d1\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\u3002\u6545\u8981\u59a5\u5584\u89e3\u51b3\u6b64\u7c7b\u95ee\u9898\uff0c\u5e94\u8003\u8651\u7edf\u4e00\u5b57\u7b26\u7f16\u7801\u6807\u51c6\uff0c\u4ee5\u907f\u514d\u4ea7\u751f\u6587\u672c\u6570\u636e\u6df7\u4e71\u7684\u72b6\u51b5\u3002<\/p>\n

2.\u68c0\u67e5Linux\u7cfb\u7edf\u9ed8\u8ba4\u7f16\u7801<\/b><\/p>\n

\u786e\u8ba4Linux\u7cfb\u7edf\u6240\u7528\u7f16\u7801\u9700\u5148\u660e\u786e\u5176\u9ed8\u8ba4\u7f16\u7801\u3002\u53ef\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u6307\u4ee4\u8fdb\u884c\u68c0\u67e5\uff1a<\/p>\n

\n

bash\necho $LANG\n<\/pre>\n<\/p>\n

\u6b64\u547d\u4ee4<\/a>\u5c06\u5c55\u793a\u73b0\u884c\u7cfb\u7edf\u4e2d\u7684\u8bed\u8a00\u73af\u5883\u53d8\u91cf\uff0c\u5176\u4e2d\u660e\u786e\u6807\u5b9a\u51fa\u7cfb\u7edf\u6240\u91c7\u7eb3\u7684\u9ed8\u8ba4\u7f16\u7801\u5f62\u5f0f\u3002\u5728\u65e5\u5e38\u5e94\u7528\u4e2d\uff0cUTF-8\u9619\u503c\u7684\u5b57\u7b26\u7f16\u7801\u6a21\u5f0f\u5c24\u4e3a\u5e38\u89c1\u3002<\/p>\n

3.\u8bbe\u7f6ePutty\u5b57\u7b26\u96c6<\/b><\/p>\n

\u4e3a\u4fdd\u8bc1Putty\u80fd\u7cbe\u786e\u5904\u7406\u4e2d\u6587\u5b57\u7b26\uff0c\u9700\u5728\u8054\u673a\u524d\u786e\u8ba4\u5b57\u7b26\u7f16\u7801\u5df2\u8bbe\u5b9a\u59a5\u5f53\u3002\u5728\u542f\u52a8Putty\u8fdb\u884c\u63a5\u9a73\u8bbe\u7f6e\u540e\uff0c\u5728\u4e3b\u754c\u9762\u5de6\u4fa7\u83dc\u5355\u680f\u9009\u53d6\u201c\u7a97\u53e3\u201d->\u201c\u8f6c\u6362\u201d\u9879\uff0c\u7136\u540e\u5728\u5f39\u51fa\u7684\u201c\u63a5\u6536\u6570\u636e\u5047\u5b9a\u4f7f\u7528\u54ea\u79cd\u5b57\u7b26\u96c6\u201d\u680f\u76ee\u4e2d\u9009\u62e9\u201cUTF-8\u201d\u5373\u53ef\u3002<\/p>\n

\u5982\u6b64\uff0cPutty\u5c06\u91c7\u7528UTF-8\u7f16\u7801\u63a5\u6536\u5165\u53e3\u6570\u636e\uff0c\u4ece\u800c\u786e\u4fdd\u4e2d\u6587\u5b57\u7b26\u7684\u51c6\u786e\u5c55\u793alinux putty\u4e2d\u6587\u4e71\u7801<\/strong>\uff0c\u6d88\u9664\u4e71\u7801\u95ee\u9898\u3002<\/p>\n

4.\u4fee\u6539Linux\u7cfb\u7edf\u8bed\u8a00\u73af\u5883<\/b><\/p>\n

putty\u4e2d\u6587\u4e71\u7801\u600e\u4e48\u8bbe\u7f6e_linux\u8f93\u5165\u4e2d\u6587\u4e71\u7801_linux putty\u4e2d\u6587\u4e71\u7801<\/p>\n

\u4e3a\u4e86\u907f\u514d\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\uff0c\u5fc5\u987b\u7075\u6d3b\u5730\u5728Putty\u548cLinux\u7cfb\u7edf\u7aef\u8fdb\u884c\u76f8\u5173\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u66f4\u6539`\/etc\/locale.conf`\u6587\u4ef6\u5373\u53ef\u8f7b\u677e\u8bbe\u5b9a\u7cfb\u7edf\u7684\u9ed8\u8ba4\u8bed\u8a00\u73af\u5883\uff0c\u4ece\u800c\u5b9e\u73b0\u4e2d\u6587\u8f93\u51fa\u6b63\u5e38\u3002<\/p>\n

sudo vi \/etc\/locale.conf<\/p>\n

\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n

LANG=\"en_US.UTF-8\"<\/p>\n

LC_ALL=\"en_US.UTF-8\"<\/p>\n

\u4fdd\u5b58\u5e76\u9000\u51fa\u6587\u4ef6\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u8bbe\u7f6e\u751f\u6548\uff1a<\/p>\n

source \/etc\/locale.conf<\/p>\n

\u6b64\u64cd\u4f5c\u5c06\u786e\u4fdd\u7cfb\u7edf\u5904\u7406\u5b57\u7b26\u4ee5\u7b26\u5408UTF-8\u7f16\u7801\u51c6\u5219\uff0c\u4fdd\u6301\u4e0ePutty\u914d\u7f6e\u7684\u4e00\u81f4\u6027\u3002<\/p>\n

5.\u4f7f\u7528iconv\u8f6c\u6362\u6587\u4ef6\u7f16\u7801<\/b><\/p>\n

\u82e5\u9700\u5728Linux\u670d\u52a1\u5668\u4e0a\u5bf9\u7279\u5b9a\u6587\u6863\u64cd\u4f5c\uff0c\u5e76\u5c06\u5176\u8f7d\u5165\u672c\u5730\u4ee5\u4f9b\u67e5\u9605\u6216\u8005\u4fee\u6539\uff0c\u8bf7\u6ce8\u610f\u6587\u4ef6\u7684\u7f16\u7801\u662f\u5426\u76f8\u5339\u914dlinux\u600e\u4e48\u67e5\u770b\u7cfb\u7edf\u7248\u672c\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u9605\u8bfb\u7834\u8bd1\u3002<\/p>\n

\u6b64\u9636\u6bb5\u53ef\u8fd0\u7528iconv\u547d\u4ee4\u5c06\u6587\u6863\u8f6c\u6362\u4e3a\u672c\u5730\u8ba1\u7b97\u673a\u652f\u6301\u7684\u7f16\u7801\u6a21\u5f0f\u3002\u5982\uff0c\u5c06GBK\u7f16\u7801\u4e4b\u6587\u4ef6\u8f6c\u4e3aUTF-8\u5f62\u5f0f\u5373\u5982\u6b64\u64cd\u4f5c\uff1a<\/p>\n

\u5c06GBK\u7f16\u7801\u6587\u4ef6\u8f6c\u4e3aUTF-8\uff0c\u4f7f\u7528\u547d\u4ee4\uff1aiconv -f gbk -t utf-8 file.txt>newfile.txt\u3002<\/p>\n

\u91c7\u7528\u6b64\u65b9\u6cd5\uff0c\u53ef\u6709\u6548\u89c4\u907f\u7531\u7f16\u7801\u683c\u5f0f\u4e0d\u7edf\u4e00\u5f15\u53d1\u7684\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\u3002<\/p>\n

6.\u66f4\u65b0Putty\u7248\u672c<\/b><\/p>\n

\u5076\u7136\u53d1\u751f\u7684\u4e2d\u6587\u4e71\u7801\u72b6\u51b5\uff0c\u4ea6\u53ef\u5f52\u7ed3\u4e3a\u65e7\u7248PuTTY\u6240\u9057\u7559\u7684\u7f3a\u9677\u6216\u8005\u4e0d\u652f\u6301\u7684\u5b57\u7b26\u7f16\u7801\u96c6\u3002\u6545\u800c\uff0c\u6211\u4eec\u5f3a\u70c8\u5efa\u8bae\u60a8\u7acb\u5373\u66f4\u65b0\u81f3\u6700\u65b0\u3001\u65e0\u7455\u75b5\u7684PuTTY\u7248\u672c\uff0c\u6b64\u7c7b\u7248\u672c\u5f80\u5f80\u5df2\u89e3\u51b3\u5148\u524d\u7248\u672c\u4e2d\u7684\u8bf8\u591a\u6f0f\u6d1elinux putty\u4e2d\u6587\u4e71\u7801<\/strong>\uff0c\u5bf9\u5b57\u7b26\u7f16\u7801\u96c6\u7684\u517c\u5bb9\u6027\u4ea6\u5927\u5927\u589e\u5f3a\u3002<\/p>\n

\u901a\u8fc7\u5347\u7ea7\u81f3\u6700\u65b0\u7684Putty\u7248\u672c\uff0c\u80fd\u591f\u663e\u8457\u589e\u5f3a\u8fdc\u7a0b\u8bbf\u95ee\u65f6\u5bf9\u4e2d\u6587\u5b57\u7b26\u7684\u5904\u7406\u80fd\u529b\uff0c\u964d\u4f4e\u663e\u793a\u5f02\u5e38\u7684\u98ce\u9669\u3002<\/p>\n

7.\u907f\u514d\u7279\u6b8a\u7b26\u53f7\u548cemoji\u8868\u60c5<\/b><\/p>\n

\u4e3a\u786e\u4fdd\u60a8\u5728\u901a\u8fc7PuTTY\u4e0eLinux\u670d\u52a1\u5668\u8fdb\u884c\u4ea4\u4e92\u65f6\u7684\u987a\u7545\u8fd0\u884c\uff0c\u8bf7\u52ff\u6ee5\u7528\u7279\u6b8a\u5b57\u7b26\u53caEmoji\u8868\u60c5\u7b49\u975e\u6807\u51c6\u5143\u7d20\u3002\u6b64\u7c7b\u9879\u76ee\u5f80\u5f80\u96be\u4ee5\u7cbe\u51c6\u8bc6\u522b\uff0c\u5bfc\u81f4\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u7f16\u7801\u6df7\u4e71\u4ece\u800c\u5f71\u54cd\u901a\u4fe1\u6548\u7387\u3002<\/p>\n

\u786e\u4fdd\u60a8\u5728\u8f93\u5165\u8fc7\u7a0b\u4e2d\u8bed\u8a00\u7b80\u6d01\u660e\u4e86\uff0c\u5e76\u5c3d\u53ef\u80fd\u91c7\u7528\u7eaf\u6587\u672c\u4f5c\u4e3a\u6211\u4eec\u4e4b\u95f4\u7684\u901a\u8baf\u65b9\u5f0f\uff0c\u4ece\u800c\u80fd\u5927\u5e45\u5ea6\u51cf\u5c11\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\u7684\u53d1\u751f\u3002<\/p>\n

8.\u91cd\u542f\u670d\u52a1\u6216\u7ec8\u7aef\u5e94\u7528<\/b><\/p>\n

\u82e5\u4e0a\u8ff0\u7b56\u7565\u672a\u80fd\u5316\u89e3putty\u4e2d\u6587\u4e71\u7801\u7684\u56f0\u6270\uff0c\u4e0d\u59a8\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u6216\u7ec8\u7aef\u5e94\u7528\u7a0b\u5e8f\u3002\u7531\u4e8e\u7f13\u5b58\u5f02\u5e38\u6216\u8005\u5176\u4ed6\u539f\u56e0\uff0c\u53ef\u80fd\u4f7f\u5b57\u7b26\u8868\u73b0\u51fa\u9519\u8bef\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u91cd\u542f\u4e4b\u540e\u4f1a\u5f97\u5230\u6b63\u5e38\u7684\u5b57\u7b26\u5c55\u793a\u6548\u679c\u3002<\/p>\n

\u91cd\u542f\u76f8\u5173\u670d\u52a1\u6216\u5e94\u7528\u7a0b\u5e8f\u5e76\u6e05\u7406\u7f13\u51b2\u6570\u636e\u4e0e\u5f02\u5e38\u72b6\u6001\uff0c\u53ef\u6392\u9664\u5f15\u53d1\u4e2d\u6587\u663e\u793a\u95ee\u9898\u7684\u53ef\u80fd\u6027\u56e0\u7d20\u3002<\/p>\n

\u5728\u6b64\uff0c\u6211\u4eec\u63d0\u4f9b\u6709\u9488\u5bf9\u6027\u5730\u89e3\u51b3LinuxPutty\u4e2d\u6587\u4e71\u7801\u95ee\u9898\u7684\u4e13\u4e1a\u5efa\u8bae\u53ca\u5e94\u5bf9\u7b56\u7565\u3002\u671f\u671b\u672c\u7bc7\u6307\u5357\u80fd\u534f\u52a9\u60a8\u6df1\u5165\u7406\u89e3\u5e76\u6210\u529f\u5e94\u5bf9\u8fdc\u7a0b\u8fde\u63a5\u65f6\u4ea7\u751f\u7684\u4e2d\u6587\u663e\u793a\u5f02\u5e38\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u4f17\u591aLinux\u670d\u52a1\u5668\u64cd\u4f5c\u4e2d\uff0c\u5e38\u5e38\u4f1a\u9047\u5230\u4ee5UTF-8\u7f16\u7801\u5bf9\u5b57\u7b26\u8fdb\u884c\u5904\u7406\u7684\u60c5\u666f\uff0c\u7136\u800c\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4e0ePutty\u5efa\u7acb\u8fde\u63a5\u5e76\u9009\u7528GBK\u3001GB2312\u7b49\u5176\u4ed6\u7f16\u7801\u683c\u5f0f\uff0c\u4fbf\u53ef\u80fd\u5f15\u53d1\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\u3002\u91c7\u7528\u6b64\u65b9\u6cd5\uff0c\u53ef\u6709\u6548\u89c4\u907f\u7531\u7f16\u7801\u683c\u5f0f\u4e0d\u7edf\u4e00\u5f15\u53d1\u7684\u4e2d\u6587\u4e71\u7801\u73b0\u8c61\u3002<\/p>\n","protected":false},"author":1,"featured_media":290782,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-290781","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=290781"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290781\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/290782"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=290781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=290781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=290781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}