{"id":84617,"date":"2026-07-26T15:27:51","date_gmt":"2026-07-26T07:27:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84617.html"},"modified":"2026-07-26T15:27:51","modified_gmt":"2026-07-26T07:27:51","slug":"%e5%95%8a%e9%87%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b9%8bflask-%e5%bc%80%e5%8f%91%e6%a8%a1%e5%bc%8f%e9%83%a8%e7%bd%b2%e5%ae%8c%e6%95%b4%e6%ad%a5%e9%aa%a4%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84617.html","title":{"rendered":"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357"},"content":{"rendered":"<p>\u7b2c\u4e00&#xff0c;\u6253\u5f00finalshell\u8f6f\u4ef6<br \/>\n\u7b2c\u4e8c&#xff0c;\u65b0\u5efa&#xff0c;SSH linux\u94fe\u63a5<br \/>\n\u540d\u79f0&#xff1a;Flask \u5f00\u53d1\u6a21\u5f0f<br \/>\n\u4e3b\u673a&#xff1a;12345678 \u7aef\u53e3&#xff1a;22<br \/>\n\u65b9\u6cd5&#xff1a;\u5bc6\u7801<br \/>\n\u7528\u6237\u540d&#xff1a;root<br \/>\n\u5bc6\u7801&#xff1a;abc4951<\/p>\n<p>\u6b65\u9aa40&#xff1a;\u5b89\u88c5\u4f9d\u8d56 Python3 \u548c Flask<br \/>\n\u00a0\u66f4\u65b0\u5305\u7ba1\u7406\u5de5\u5177 &amp; \u5b89\u88c5 pip<br \/>\napt update<br \/>\napt install python3 python3-pip -y<\/p>\n<p>\u5b89\u88c5 Flask \u6846\u67b6<br \/>\npip3 install flask<br \/>\n\u5b89\u88c5 tmux&#xff08;\u540e\u53f0\u4fdd\u6301\u8fd0\u884c\u5de5\u5177&#xff09;<br \/>\napt install tmux -y<br \/>\n\u521b\u5efa\u9879\u76ee\u6587\u4ef6\u5939 &amp; \u7f16\u5199 Flask \u4ee3\u7801<br \/>\n\u00a01\u3001\u521b\u5efa\u6587\u4ef6\u5939\u5e76\u8fdb\u5165<br \/>\nmkdir -p \/root\/upload_server<br \/>\ncd \/root\/upload_server<br \/>\n\u521b\u5efa upload_server.py \u4e3b\u7a0b\u5e8f\u6587\u4ef6<\/p>\n<p>cat &gt; upload_server.py &lt;&lt; &#039;EOF&#039;<br \/>\nfrom flask import Flask, request, send_from_directory<br \/>\nimport os<\/p>\n<p>app &#061; Flask(__name__)<br \/>\nUPLOAD_FOLDER &#061; &#039;\/var\/www\/html&#039;<br \/>\n# \u786e\u4fdd\u4e0a\u4f20\u6587\u4ef6\u5939\u5b58\u5728<br \/>\nos.makedirs(UPLOAD_FOLDER, exist_ok&#061;True)<br \/>\napp.config[&#039;UPLOAD_FOLDER&#039;] &#061; UPLOAD_FOLDER<\/p>\n<p># \u4e0a\u4f20\u63a5\u53e3&#xff1a;\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\u540d<br \/>\n&#064;app.route(&#039;\/upload&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef upload():<br \/>\n\u00a0 \u00a0 if &#039;file&#039; not in request.files:<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 return &#039;\u672a\u9009\u62e9\u6587\u4ef6&#039;<br \/>\n\u00a0 \u00a0 file &#061; request.files[&#039;file&#039;]<br \/>\n\u00a0 \u00a0 filename &#061; file.filename<br \/>\n\u00a0 \u00a0 save_path &#061; os.path.join(UPLOAD_FOLDER, filename)<br \/>\n\u00a0 \u00a0 file.save(save_path)<br \/>\n\u00a0 \u00a0 return &#034;ok&#034;<\/p>\n<p># \u76f4\u63a5\u8bbf\u95ee\u4e0a\u4f20\u7684\u7f51\u9875\/\u6587\u4ef6<br \/>\n&#064;app.route(&#039;\/&lt;filename&gt;&#039;)<br \/>\ndef serve_file(filename):<br \/>\n\u00a0 \u00a0 return send_from_directory(UPLOAD_FOLDER, filename)<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n\u00a0 \u00a0 # \u5f00\u53d1\u6a21\u5f0f\u8fd0\u884c&#xff1a;\u76d1\u542c\u5168\u90e8\u7f51\u5361&#xff0c;\u7aef\u53e38080<br \/>\n\u00a0 \u00a0 app.run(host&#061;&#039;0.0.0.0&#039;, port&#061;8080, debug&#061;True)<br \/>\nEOF<\/p>\n<p>\n\u6b65\u9aa4 1&#xff08;\u4e3b SSH \u7ec8\u7aef&#xff09;&#xff1a;\u7f16\u8f91 Flask \u4ee3\u7801<br \/>\nnano \/root\/upload_server\/upload_server.py<br \/>\n\u7c98\u8d34\u4e0b\u9762\u5b8c\u6574\u4ee3\u7801<br \/>\nfrom flask import Flask, request, send_from_directory<br \/>\nimport os<\/p>\n<p>app &#061; Flask(__name__)<br \/>\nUPLOAD_FOLDER &#061; &#039;\/var\/www\/html&#039;<br \/>\n# \u786e\u4fdd\u4e0a\u4f20\u6587\u4ef6\u5939\u5b58\u5728<br \/>\nos.makedirs(UPLOAD_FOLDER, exist_ok&#061;True)<br \/>\napp.config[&#039;UPLOAD_FOLDER&#039;] &#061; UPLOAD_FOLDER<\/p>\n<p># \u4e0a\u4f20\u63a5\u53e3&#xff1a;\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\u540d<br \/>\n&#064;app.route(&#039;\/upload&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef upload():<br \/>\n\u00a0 \u00a0 if &#039;file&#039; not in request.files:<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 return &#039;\u672a\u9009\u62e9\u6587\u4ef6&#039;<br \/>\n\u00a0 \u00a0 file &#061; request.files[&#039;file&#039;]<br \/>\n\u00a0 \u00a0 filename &#061; file.filename<br \/>\n\u00a0 \u00a0 save_path &#061; os.path.join(UPLOAD_FOLDER, filename)<br \/>\n\u00a0 \u00a0 file.save(save_path)<br \/>\n\u00a0 \u00a0 return &#034;ok&#034;<\/p>\n<p># \u76f4\u63a5\u8bbf\u95ee\u4e0a\u4f20\u7684\u6587\u4ef6<br \/>\n&#064;app.route(&#039;\/&lt;filename&gt;&#039;)<br \/>\ndef serve_file(filename):<br \/>\n\u00a0 \u00a0 return send_from_directory(UPLOAD_FOLDER, filename)<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n\u00a0 \u00a0 app.run(host&#061;&#039;0.0.0.0&#039;, port&#061;8080)<br \/>\n\u4fdd\u5b58&#xff1a;\u6309 Ctrl&#043;O \u2192 \u56de\u8f66<br \/>\n\u9000\u51fa&#xff1a;\u6309 Ctrl&#043;X<\/p>\n<p>\u00a0\u9a8c\u8bc1\u4ee3\u7801<br \/>\ncat upload_server.py<\/p>\n<p>\u6b65\u9aa4 4&#xff1a;\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u653e\u884c 8080 TCP \u7aef\u53e3<br \/>\n\u767b\u5f55\u963f\u91cc\u4e91\u5b98\u7f51 \u2192 \u8fdb\u5165\u4e91\u670d\u52a1\u5668 ECS \u63a7\u5236\u53f0<br \/>\n\u627e\u5230\u5b9e\u4f8b \u2192 \u5b89\u5168\u7ec4 \u2192 \u914d\u7f6e\u89c4\u5219<br \/>\n\u6dfb\u52a0\u653e\u884c\u89c4\u5219&#xff1a;<br \/>\n\u534f\u8bae&#xff1a;TCP<br \/>\n\u7aef\u53e3&#xff1a;8080<br \/>\n\u6388\u6743\u5bf9\u8c61&#xff1a;0.0.0.0\/0&#xff08;\u5168\u7f51\u8bbf\u95ee&#xff0c;\u4ec5\u6d4b\u8bd5\u7528&#xff09;<br \/>\n\u7b56\u7565&#xff1a;\u5141\u8bb8<br \/>\n\u4fdd\u5b58<\/p>\n<p>\u6b65\u9aa4 5&#xff08;\u4e3b SSH \u7ec8\u7aef&#xff09;&#xff1a;\u8fdb\u5165 tmux \u91cd\u542f\u670d\u52a1<br \/>\n1\u3001\u8fdb\u5165 tmux \u4f1a\u8bdd bash<br \/>\n\u00a0 \u00a0tmux a -t flask_upload<\/p>\n<p>python3 upload_server.py<br \/>\n4\u3001\u540e\u53f0\u8131\u79bb&#xff1a;Ctrl&#043;B \u2192 \u677e\u5f00\u6309 D<\/p>\n<p>\u6b65\u9aa4 3&#xff08;\u672c\u5730\u7535\u8111&#xff09;&#xff1a;\u91cd\u65b0\u4e0a\u4f20 index.html<br \/>\n\u6253\u5f00\u4f60\u672c\u5730\u7684 test.html \u4e0a\u4f20\u9875\u9762&#xff0c;\u518d\u6b21\u4e0a\u4f20 index.html<br \/>\n\u4e0a\u4f20\u6210\u529f\u9875\u9762\u663e\u793a ok<br \/>\n\u6b64\u65f6\u6587\u4ef6\u771f\u5b9e\u4fdd\u5b58\u5728\u670d\u52a1\u5668 \/var\/www\/html\/index.html<\/p>\n<p>\u6b65\u9aa4 4&#xff08;\u672c\u5730\u6d4f\u89c8\u5668&#xff09;&#xff1a;\u76f4\u63a5\u6253\u5f00\u7f51\u9875<br \/>\nhttp:\/\/8.134.197.176:8080\/index.html<br \/>\n\u6b65\u9aa4 5 \u9a8c\u8bc1&#xff08;SSH \u67e5\u770b\u6587\u4ef6&#xff09;<br \/>\nls \/var\/www\/html<\/p>\n<p>\n&#xff08;\u4e3b SSH \u7ec8\u7aef&#xff09;<br \/>\ncat &gt; \/root\/upload_server\/upload_server.py &lt;&lt; &#039;EOF&#039;<br \/>\nfrom flask import Flask, request, send_from_directory<br \/>\nimport os<\/p>\n<p>app &#061; Flask(__name__)<br \/>\nUPLOAD_FOLDER &#061; &#039;\/var\/www\/html&#039;<br \/>\n# \u786e\u4fdd\u4e0a\u4f20\u6587\u4ef6\u5939\u5b58\u5728<br \/>\nos.makedirs(UPLOAD_FOLDER, exist_ok&#061;True)<br \/>\napp.config[&#039;UPLOAD_FOLDER&#039;] &#061; UPLOAD_FOLDER<\/p>\n<p># \u4e0a\u4f20\u63a5\u53e3&#xff1a;\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\u540d<br \/>\n&#064;app.route(&#039;\/upload&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef upload():<br \/>\n\u00a0 \u00a0 if &#039;file&#039; not in request.files:<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 return &#039;\u672a\u9009\u62e9\u6587\u4ef6&#039;<br \/>\n\u00a0 \u00a0 file &#061; request.files[&#039;file&#039;]<br \/>\n\u00a0 \u00a0 filename &#061; file.filename<br \/>\n\u00a0 \u00a0 save_path &#061; os.path.join(UPLOAD_FOLDER, filename)<br \/>\n\u00a0 \u00a0 file.save(save_path)<br \/>\n\u00a0 \u00a0 return &#034;ok&#034;<\/p>\n<p># \u76f4\u63a5\u8bbf\u95ee\u4e0a\u4f20\u7684\u6587\u4ef6<br \/>\n&#064;app.route(&#039;\/&lt;filename&gt;&#039;)<br \/>\ndef serve_file(filename):<br \/>\n\u00a0 \u00a0 return send_from_directory(UPLOAD_FOLDER, filename)<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n\u00a0 \u00a0 app.run(host&#061;&#039;0.0.0.0&#039;, port&#061;8080)<br \/>\nEOF<\/p>\n<p>\n\u9a8c\u8bc1\u662f\u5426\u4fee\u6539\u6210\u529f&#xff0c;\u8f93\u5165&#xff1a;<br \/>\ncat \/root\/upload_server\/upload_server.py<br \/>\n\u67e5\u770b\u76ee\u5f55&#xff1a;<br \/>\nls \/var\/www\/html<\/p>\n<p>\u5ba2\u6237\u7aef&#xff1a;<br \/>\n&lt;!DOCTYPE html&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n\u00a0 \u00a0 &lt;meta charset&#061;&#034;UTF-8&#034;&gt;<br \/>\n\u00a0 \u00a0 &lt;title&gt;\u6587\u4ef6\u4e0a\u4f20&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n\u00a0 \u00a0 &lt;h3&gt;\u4e0a\u4f20\u6587\u4ef6\u5230\u670d\u52a1\u5668&lt;\/h3&gt;<br \/>\n\u00a0 \u00a0 &lt;!&#8211; \u4e0a\u4f20\u63a5\u53e3\u5730\u5740 &#8211;&gt;<br \/>\n\u00a0 \u00a0 &lt;form action&#061;&#034;http:\/\/1234578:8080\/upload&#034; method&#061;&#034;post&#034; enctype&#061;&#034;multipart\/form-data&#034;&gt;<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 &lt;!&#8211; \u5b57\u6bb5\u540d\u5fc5\u987b\u662f name&#061;&#034;file&#034;&#xff0c;\u548c\u540e\u7aef\u5339\u914d &#8211;&gt;<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 &lt;input type&#061;&#034;file&#034; name&#061;&#034;file&#034;&gt;<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 &lt;br&gt;&lt;br&gt;<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 &lt;button type&#061;&#034;submit&#034;&gt;\u63d0\u4ea4\u4e0a\u4f20&lt;\/button&gt;<br \/>\n\u00a0 \u00a0 &lt;\/form&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<\/p>\n<p>\u91cd\u8981\u63d0\u9192<br \/>\n\u5f53\u524d\u662f Flask \u5f00\u53d1\u6a21\u5f0f&#xff0c;\u4ec5\u9002\u5408\u6d4b\u8bd5\u4f7f\u7528&#xff0c;\u4e0d\u9002\u5408\u6b63\u5f0f\u957f\u671f\u5bf9\u5916\u8bbf\u95ee\u3002<br \/>\n\u5982\u9700\u6b63\u5f0f\u90e8\u7f72&#xff08;\u5982 Nginx&#xff09;\u53ef\u4ee5\u540e\u7eed\u518d\u6559\u4f60\u64cd\u4f5c&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00&#xff0c;\u6253\u5f00finalshell\u8f6f\u4ef6<br \/>\n\u7b2c\u4e8c&#xff0c;\u65b0\u5efa&#xff0c;SSH linux\u94fe\u63a5<br \/>\n\u540d\u79f0&#xff1a;Flask \u5f00\u53d1\u6a21\u5f0f<br \/>\n\u4e3b\u673a&#xff1a;12345678 \u7aef\u53e3&#xff1a;22<br \/>\n\u65b9\u6cd5&#xff1a;\u5bc6\u7801<br \/>\n\u7528\u6237\u540d&#xff1a;root<br \/>\n\u5bc6\u7801&#xff1a;abc4951\u6b65\u9aa40&#xff1a;\u5b89\u88c5\u4f9d\u8d56 Python3 \u548c Flask\u66f4\u65b0\u5305\u7ba1\u7406\u5de5\u5177 &amp; \u5b89\u88c5 pip<br \/>\napt update<br \/>\napt install python3 pytho<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[153,43,44],"topic":[],"class_list":["post-84617","post","type-post","status-publish","format-standard","hentry","category-server","tag-flask","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/84617.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b2c\u4e00&#xff0c;\u6253\u5f00finalshell\u8f6f\u4ef6 \u7b2c\u4e8c&#xff0c;\u65b0\u5efa&#xff0c;SSH linux\u94fe\u63a5 \u540d\u79f0&#xff1a;Flask \u5f00\u53d1\u6a21\u5f0f \u4e3b\u673a&#xff1a;12345678 \u7aef\u53e3&#xff1a;22 \u65b9\u6cd5&#xff1a;\u5bc6\u7801 \u7528\u6237\u540d&#xff1a;root \u5bc6\u7801&#xff1a;abc4951\u6b65\u9aa40&#xff1a;\u5b89\u88c5\u4f9d\u8d56 Python3 \u548c Flask\u66f4\u65b0\u5305\u7ba1\u7406\u5de5\u5177 &amp; \u5b89\u88c5 pip apt update apt install python3 pytho\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84617.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T07:27:51+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84617.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84617.html\",\"name\":\"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T07:27:51+00:00\",\"dateModified\":\"2026-07-26T07:27:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84617.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84617.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84617.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/84617.html","og_locale":"zh_CN","og_type":"article","og_title":"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b2c\u4e00&#xff0c;\u6253\u5f00finalshell\u8f6f\u4ef6 \u7b2c\u4e8c&#xff0c;\u65b0\u5efa&#xff0c;SSH linux\u94fe\u63a5 \u540d\u79f0&#xff1a;Flask \u5f00\u53d1\u6a21\u5f0f \u4e3b\u673a&#xff1a;12345678 \u7aef\u53e3&#xff1a;22 \u65b9\u6cd5&#xff1a;\u5bc6\u7801 \u7528\u6237\u540d&#xff1a;root \u5bc6\u7801&#xff1a;abc4951\u6b65\u9aa40&#xff1a;\u5b89\u88c5\u4f9d\u8d56 Python3 \u548c Flask\u66f4\u65b0\u5305\u7ba1\u7406\u5de5\u5177 &amp; \u5b89\u88c5 pip apt update apt install python3 pytho","og_url":"https:\/\/www.wsisp.com\/helps\/84617.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T07:27:51+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84617.html","url":"https:\/\/www.wsisp.com\/helps\/84617.html","name":"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T07:27:51+00:00","dateModified":"2026-07-26T07:27:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84617.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84617.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84617.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u554a\u91cc\u670d\u52a1\u5668\u4e4bFlask \u5f00\u53d1\u6a21\u5f0f\u90e8\u7f72\u5b8c\u6574\u6b65\u9aa4\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=84617"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84617\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84617"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}