{"id":96341,"date":"2024-05-21T22:48:13","date_gmt":"2024-05-21T14:48:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=96341"},"modified":"2024-05-21T22:48:13","modified_gmt":"2024-05-21T14:48:13","slug":"linux-xshell","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-xshell.html","title":{"rendered":"\u805a\u7126\uff1aLinux\u7cfb\u7edf\u4e0b\u5e38\u89c1Xshell\u8fd0\u884c\u547d\u4ee4\u6c47\u603b"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6700\u8fd1\u63a5\u89e6\u5230\u4e86Xshell\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u4f7f\u7528\u8fd9\u4e2a\u8f6f\u4ef6\u6211\u4eec\u6765\u8fdb\u884c\u8fde\u63a5Linux\u7cfb\u7edf\uff0c\u8fdb\u53bb\u4e4b\u540e\u6211\u4eec\u53ef\u80fd\u4f1a\u4e24\u773c\u4e00\u62b9\u9ed1\uff0c\u5c0f\u7f16\u5c31\u5e26\u5927\u5bb6\u6765\u5b66\u4e9b\u5e38\u89c1\u7684shell\u547d\u4ee4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u9996\u5148\u6211\u4eec\u8981\u8ddf\u5927\u5bb6\u4ece\u6700\u7b80\u5355\u7684\u804a\u8d77\uff0c\u6211\u4eec\u8fdb\u5165Xshell\u7684\u754c\u9762\u4e4b\u540e\u8fde\u63a5\u4e0aLinux\u670d\u52a1\u5668\uff0c\u521a\u8fdb\u53bb\u7684\u65f6\u5019\u6211\u4eec\u662f\u4e0d\u77e5\u9053\u6211\u4eec\u6709\u54ea\u4e9b\u6587\u4ef6\u7684\uff0c\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u6765\u663e\u793a\u6709\u54ea\u4e9b\u6587\u4ef6\uff0c\u6216\u8005\u4f7f\u7528ls -l\uff0c\u6700\u7b80\u5355\u7684\u662fll\u3002ls\u547d\u4ee4\u4f1a\u628a\u6587\u4ef6\u6a2a\u5411\u663e\u793a\uff0c\u770b\u7740\u4e0d\u8212\u670d\uff0cll\u548cls -l\u662f\u4e00\u6837\u7684\u6548\u679c\uff0c\u5efa\u8bae\u4f7f\u7528ll\uff0c\u56e0\u4e3a\u5b83\u6700\u7b80\u5355<\/p>\n

\"\"<\/p>\n

\u6211\u4eec\u5df2\u7ecf\u77e5\u9053\u6587\u4ef6\u6709\u54ea\u4e9b\u540e\u9700\u8981\u77e5\u9053\u5982\u4f55\u8fdb\u5165\u6211\u4eec\u60f3\u8981\u8fdb\u5165\u7684\u6587\u4ef6\uff0c\u5728windows\u8fd9\u79cd\u56fe\u5f62\u5316\u7684\u7cfb\u7edf\u4e0b\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u53cc\u51fb\u8fd9\u79cd\u65b9\u5f0f\u6253\u5f00\u6211\u4eec\u9700\u8981\u6253\u5f00\u7684\u6587\u4ef6\uff0c\u5728Xshell\u4e2d\u6211\u4eec\u9700\u8981\u4f7f\u7528\u7684\u662f\uff1acd \u547d\u4ee4\uff0c\u6211\u4eec\u8fdb\u5165\u4e4b\u540e\u51e0\u9762\u663e\u793a\u5982\u4e0b\uff0c\u8fd9\u65f6\u9ed8\u8ba4\u662f\u5728\u6839\u8282\u70b9root\u4e0b\u9762\uff1a<\/p>\n

\"\"<\/p>\n

\u5047\u5982\u6211\u4eec\u73b0\u5728\u9700\u8981\u8fdb\u5165\u7684\u662fusr\u6587\u4ef6\u7684local\u6587\u4ef6\u4e2d\u6211\u4eec\u5c31\u9700\u8981\u4f7f\u7528\uff1acd \/usr\/local\uff0c\u6765\u8fdb\u5165\uff0c\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u5c31\u663e\u793a\u5df2\u7ecf\u8fdb\u5165\u4e86local\u8fd9\u4e2a\u6587\u4ef6\u4e0b\u9762\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u5728root\u6839\u76ee\u5f55\u4e0b\u8fdb\u5165\u5176\u4ed6\u6587\u4ef6\u65f6\u9700\u8981\u5728\u6700\u524d\u9762\u52a0\u4e0a\u659c\u7ebf\u201c\/\u201d\uff0c\u5728\u5176\u4ed6\u4efb\u4f55\u4e8c\u7ea7\u751a\u81f3\u591a\u7ea7\u76ee\u5f55\u4e0b\u90fd\u662f\u53ef\u4ee5\u4e0d\u52a0\u76f4\u63a5\u8fdb\u5165\u7684\u3002<\/p>\n

\"\"<\/p>\n

\u6709\u8fdb\u5165\u540c\u6837\u5c31\u6709\u8fd4\u56de\uff0c\u9700\u8981\u8fd4\u56de\u7684\u65f6\u5019\u6211\u4eec\u9700\u8981\u4f7f\u7528\uff1acd ..\/ \u8fd9\u4e2a\u547d\u4ee4\uff0c\u540c\u6837\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728..\/\u4e4b\u540e\u52a0\u4e0a\u6211\u4eec\u9700\u8981\u8fdb\u5165\u7684\u4e0a\u7ea7\u6587\u4ef6\u76ee\u5f55\u5c31\u53ef\u4ee5\u76f4\u63a5\u8fdb\u5165\u4e86<\/p>\n

\"\"<\/p>\n

\u5728\u63a5\u4e0b\u6765\u5c31\u662f\u5982\u4f55\u7f16\u8f91\u6587\u4ef6\u548c\u67e5\u770b\u6587\u4ef6\u4e86\uff0c\u5047\u5982\u73b0\u5728local\u76ee\u5f55\u4e0b\u5b58\u5728host.xml\u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u7f16\u8f91\u6216\u8005\u67e5\u770b\u5b83\u3002\u67e5\u770b\u7684\u547d\u4ee4\u662fcat host.xml\uff1b\u7f16\u8f91\u7684\u547d\u4ee4\u662fvi host.xml\uff0c\u7136\u540e\u6309\u4e0bi\uff0c\u8fdb\u5165\u4fee\u6539\u6a21\u5f0f\uff0c\u8981\u4e0d\u7136\u5c31\u53ea\u662f\u770b\uff0c\u5982\u679c\u6211\u4eec\u7a81\u7136\u4e0d\u60f3\u4fee\u6539\u65f6\uff0c\u6309\u4e0bESC \u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u5199\u4e0b :q! \u7136\u540e\u56de\u8f66\u5c31\u63a5\u89e6\u7f16\u8f91\uff0c\u5982\u679c\u6211\u4eec\u662f\u7f16\u8f91\u5b8c\u4e86\u9700\u8981\u4fdd\u5b58\uff0c\u4e5f\u9700\u8981\u6309\u4e0bESC\uff0c\u7136\u540e\u8f93\u5165 :wq \u56de\u8f66\u3002<\/p>\n

\u603b\u7ed3\u4e00\u4e0b\u5c31\u662f\uff1a\u7f16\u8f91\u6587\u4ef6 vi\uff0c\u6309\u4e0bi\u8fdb\u884c\u7f16\u8f91 \u4fdd\u5b58\u7ed3\u675f\u7f16\u8f91 ESC :wq \u56de\u8f66 \u4e0d\u4fdd\u5b58\u7ed3\u675f\u7f16\u8f91 ESC :q! \u56de\u8f66<\/p>\n

\"\"<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e0b\u6267\u884c\u6587\u4ef6\u6211\u4eec\u9700\u8981\u4f7f\u7528\u7684\u7684 .\/\u6587\u4ef6\u540d.sh\uff0c\u5047\u5982\u6211\u4eec\u9700\u8981\u6267\u884chost.sh\u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u5165\u6587\u4ef6\u6240\u5728\u76ee\u5f55\u63a5\u7740\u6267\u884c\u5373\u53ef<\/p>\n

\"\"<\/p>\n

\u4e0a\u9762\u7684\u547d\u4ee4\u8fd0\u884c\u662f\u53ef\u80fd\u4f1a\u51fa\u73b0\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u6700\u540e\u8ddf\u5927\u5bb6\u8bf4\u4e00\u4e2a\u6388\u6743\u547d\u4ee4\uff0c\u5047\u5982\u6211\u4eec\u60f3\u8981\u7ed9\u8fd9\u4e2a\u6587\u4ef6\u4e0b\u7684\u6240\u6709.sh\u6587\u4ef6\u6388\u6743\uff0c\u6211\u4eec\u53ef\u4ee5\u5199\uff1achmod u+x *.sh \u7ed9sh\u6587\u4ef6\u6388\u6743\uff0c\u5f53\u7136\u4e86\u6211\u4eec\u4e5f\u53ef\u4ee5\u5c06*\u66ff\u6362\u4e3a\u5177\u4f53\u7684\u6587\u4ef6\u540d\uff0c\u4f9d\u636e\u9700\u8981\u6765\u5b9a\uff1a
\n\"\"<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.centoscn.com\/shell\/2017\/1116\/9222.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-xshell.html<\/a>\u7f16\u8f91\uff1a\u4f55\u4e91\u8273\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u6700\u8fd1\u63a5\u89e6\u5230\u4e86Xshell\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u4f7f\u7528\u8fd9\u4e2a\u8f6f\u4ef6\u6211\u4eec\u6765\u8fdb\u884c\u8fde\u63a5Linux\u7cfb\u7edf\uff0c\u8fdb\u53bb\u4e4b\u540e\u6211\u4eec\u53ef\u80fd\u4f1a\u4e24\u773c\u4e00\u62b9\u9ed1 […]<\/p>\n","protected":false},"author":1479,"featured_media":96352,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-96341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96341","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\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=96341"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96341\/revisions"}],"predecessor-version":[{"id":96411,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/96341\/revisions\/96411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/96352"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=96341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=96341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=96341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}