{"id":431,"date":"2021-09-10T01:34:00","date_gmt":"2021-09-10T01:34:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=431"},"modified":"2021-09-10T01:34:00","modified_gmt":"2021-09-10T01:34:00","slug":"431","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/09\/10\/431\/","title":{"rendered":"Xshell 7 \u64cd\u4f5c Docker Python3 \u5b66\u4e60\u7f16\u7a0b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/3558359839.png\" alt=\"Xshell.png\" title=\"Xshell.png\"><\/p>\n<h3>\u5148\u8bbe\u7f6e\u597d\u989c\u8272\u4e3b\u9898\uff0c\u53c2\u8003\u6587\u7ae0: <a href=\"https:\/\/lyvba.com\/index.php\/archives\/416\/\">Xshell 7 \u989c\u8272\u4e3b\u9898\u8bbe\u7f6e\u6210\u548cgit_bash\u76f8\u540c<\/a><\/h3>\n<h3>\u767b\u9646\u5230VPS \u5b89\u88c5 <code>Docker<\/code> \u548c <code>Python3<\/code> \u5bb9\u5668<\/h3>\n<ul>\n<li>\n<p><code>Python3<\/code> \u5bb9\u5668\u5b89\u5229 Python3 With Network Library ( <code>html2text scrapy beautifulsoup4 ipip-ipdb<\/code> )<\/p>\n<pre><code>docker run -d  --restart=always   \\015\n  -v \/app:\/app  --name python3 \\015\n  hongwenjun\/python3  \\015\n  python3 -m http.server 8000\n<\/code><\/pre>\n<h3>Xshell \u5f00\u542f <code>\u5feb\u901f\u547d\u4ee4\u680f<\/code>  \u6dfb\u52a0\u6309\u94ae <code>Python3<\/code><\/h3>\n<pre><code>docker exec -it python3  python3 -i \/me.py  # <\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u5982\u56fe\uff0c'me.py' \u53ef\u4ee5\u7528\u6765\u6e05\u5c4f\u548c\u663e\u793a\u5f69\u8272\uff0c\u548c\u4e34\u65f6\u5207\u6362\u5230 Shell<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/3287013329.gif\" alt=\"GIF.gif\" title=\"GIF.gif\"><\/p>\n<h3>\u5229\u7528XShell\u4e0a\u4f20\u3001\u4e0b\u8f7d\u6587\u4ef6\uff08\u4f7f\u7528sz\u4e0erz\u547d\u4ee4\uff09<\/h3>\n<p>Xshell\u5f88\u597d\u7528,\u7136\u540e\u6709\u65f6\u5019\u60f3\u5728windows\u548clinux\u4e0a\u4f20\u6216\u4e0b\u8f7d\u67d0\u4e2a\u6587\u4ef6,\u5176\u5b9e\u6709\u4e2a\u5f88\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662frz,sz\u3002<br \/>\u9996\u5148\u4f60\u7684Linux\u4e0a\u9700\u8981\u5b89\u88c5\u5b89\u88c5lrzsz\u5de5\u5177\u5305\uff0c(\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4,\u5b89\u88c5\u5b8c\u7684\u8bf7\u8df3\u8fc7)<br \/><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/489581806.png\" alt=\"rz.png\" title=\"rz.png\"><\/p>\n<pre><code>apt install lrzsz\nrz      \u5411\u8fdc\u7a0b\u53d1\u9001\u6587\u4ef6\nsz file \u4ece\u8fdc\u7a0b\u4e0b\u8f7d\u6587\u4ef6 <\/code><\/pre>\n<p>rz\uff0csz\u662f\u4fbf\u662fLinux\/Unix\u540cWindows\u8fdb\u884cZModem\u6587\u4ef6\u4f20\u8f93\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6240\u4ee5\u8981\u5728Xshell\u8fde\u63a5\u5c5e\u6027\u4e2d\u7684\u8bbe\u7f6e\u4e0a\u4f20\u534f\u8bae\u4e3aZmodem\u548c\u63a5\u53d7\u7684\u6587\u4ef6\u8def\u5f84\u7b49\u3002<\/p>\n<h3>Xshell \u76f8\u5173\u6587\u7ae0\u6807\u7b7e<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.lyvba.com\/index.php\/tag\/Xshell\/\">https:\/\/www.lyvba.com\/index.php\/tag\/Xshell\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u8bbe\u7f6e\u597d\u989c\u8272\u4e3b\u9898\uff0c\u53c2\u8003\u6587\u7ae0: Xshell 7 \u989c\u8272\u4e3b\u9898\u8bbe\u7f6e\u6210\u548cgit_bash\u76f8\u540c \u767b\u9646\u5230VPS  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[45,49],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","category-soft","tag-python","tag-xshell"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}