{"id":23271,"date":"2025-04-19T07:19:12","date_gmt":"2025-04-18T23:19:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/23271.html"},"modified":"2025-04-19T07:19:12","modified_gmt":"2025-04-18T23:19:12","slug":"%e3%80%90python%e5%a4%a7%e8%af%ad%e8%a8%80%e6%a8%a1%e5%9e%8b%e7%b3%bb%e5%88%97%e3%80%91%e5%9c%a8%e9%98%bf%e9%87%8c%e4%ba%91ecs%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2dify%e5%a4%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/23271.html","title":{"rendered":"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09"},"content":{"rendered":"<p>\u8fd9\u662f\u6211\u7684\u7b2c360\u7bc7\u539f\u521b\u6587\u7ae0\u3002<\/p>\n<h2><\/h2>\n<h2>\u4e00\u3001\u963f\u91cc\u4e91ECS\u7b80\u4ecb<\/h2>\n<p style=\"text-align:justify\">\u4e91\u670d\u52a1\u5668(\u00a0Elastic Compute Service\u00a0,\u7b80\u79f0ECS\u00a0)\u662f\u4e00-\u79cd\u7b80\u5355\u9ad8\u6548\u3001\u5904\u7406\u80fd\u529b\u53ef\u5f39\u6027\u4f38\u7f29\u7684\u8ba1\u7b97\u670d\u52a1&#xff0c;\u5e2e\u52a9\u60a8\u5feb\u901f\u6784\u5efa\u66f4\u7a33\u5b9a\u3001\u5b89\u5168\u7684\u5e94\u7528,\u63d0\u5347\u8fd0\u7ef4\u6548\u7387,\u964d\u4f4eIT\u6210\u672c&#xff0c;\u4f7f\u60a8\u66f4\u4e13\u6ce8\u4e8e\u6838\u5fc3\u4e1a\u52a1\u521b\u65b0\u3002<\/p>\n<p style=\"text-align:justify\">\u8fd9\u4e2a\u6d3b\u52a8\u9700\u8981\u6ee1\u8db3\u662f\u65b0\u7528\u6237\u7684\u6761\u4ef6&#xff0c;\u7136\u540e\u8fdb\u5165 https:\/\/free.aliyun.com\/?spm&#061;5176.13830350.J_9630841290.4.3b3750d0kpmRdO&amp;product&#061;1351\u9875\u9762\u5373\u53ef\u514d\u8d39\u4f53\u9a8c\u963f\u91cc\u4e91ECS\u4e86\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"589\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231907-6802ddeb0d0fe.png\" width=\"1031\" \/><\/p>\n<p>\u8fdb\u5165\u9875\u9762\u4e4b\u540e\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u6211\u4eec\u9700\u8981\u7684\u914d\u7f6e&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"347\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231907-6802ddeb64548.png\" width=\"1080\" \/><\/p>\n<p>\u5f00\u901a\u670d\u52a1\u5668\u540e&#xff0c;\u9996\u5148\u4fee\u6539\u670d\u52a1\u5668\u7684\u767b\u9646\u5bc6\u7801&#xff0c;\u70b9\u51fb\u91cd\u7f6e\u5b9e\u4f8b\u5bc6\u7801&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"564\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231907-6802ddebc04f1.png\" width=\"1080\" \/><\/p>\n<p>\u521b\u5efa\u7684\u5b9e\u4f8b&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"151\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231908-6802ddec391ec.png\" width=\"1080\" \/><\/p>\n<p>\u6211\u4eec\u901a\u8fc7\u8fdc\u7a0b\u8fde\u63a5\u7684\u65b9\u5f0f&#xff0c;\u8fdb\u5165\u8fd9\u4e2a\u5b9e\u4f8b&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"386\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231908-6802ddec6c4b3.png\" width=\"1002\" \/><\/p>\n<p>\u5f53\u7136&#xff0c;\u4e5f\u53ef\u4ee5\u7528Xshell\u6216\u5176\u4ed6\u8fdc\u7a0b\u8fde\u63a5\u8f6f\u4ef6\u8fde\u4e0a\u670d\u52a1\u5668&#xff08;\u8f93\u5165root\u548c\u5bc6\u7801&#xff09;&#xff0c;\u6839\u636e\u516c\u7f51ip\u5730\u5740\u8fde\u4e0a\u3002<\/p>\n<h2><\/h2>\n<h2>\u4e8c\u3001\u5728ECS\u4e0a\u5b89\u88c5Docker<\/h2>\n<p>\u5b89\u88c5dify\u7684\u4e24\u4e2a\u524d\u63d0\u6761\u4ef6&#xff1a;<\/p>\n<h4><\/h4>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"655\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231908-6802ddec9a46d.png\" width=\"886\" \/><\/p>\n<h4>2.1 \u4e0b\u8f7dDocker\u7684\u4f9d\u8d56\u73af\u5883<\/h4>\n<p>\u5b89\u88c5Docker&#xff0c;\u9996\u5148\u8981\u4e0b\u8f7d\u4ed6\u6240\u4f9d\u8d56\u7684\u73af\u5883<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"342\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231908-6802ddecd9088.png\" width=\"1080\" \/><\/p>\n<h4>2.2 \u6307\u5b9aDocker\u955c\u50cf\u6e90<\/h4>\n<p>\u9ed8\u8ba4\u4e0b\u8f7dDocker\u4f1a\u53bb\u56fd\u5916\u670d\u52a1\u5668\u4e0b\u8f7d&#xff0c;\u901f\u5ea6\u8f83\u6162&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u963f\u91cc\u4e91\u955c\u50cf\u6e90&#xff0c;\u901f\u5ea6\u66f4\u5feb<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"37\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802dded2015f.png\" width=\"1080\" \/><\/p>\n<h4>2.3 \u5b89\u88c5Docker<\/h4>\n<p>\u5f00\u59cb\u5b89\u88c5Docker<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802dded3f37c.png\" width=\"1080\" \/><\/p>\n<h4>2.4 \u8bbe\u7f6e\u542f\u52a8\u65b9\u5f0f<\/h4>\n<p>\u5b89\u88c5\u6210\u529f\u540e&#xff0c;\u9700\u8981\u624b\u52a8\u542f\u52a8&#xff0c;\u8bbe\u7f6e\u4e3a\u5f00\u673a\u542f\u52a8<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"47\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802dded7ba5d.png\" width=\"599\" \/><\/p>\n<h4>2.5 \u6d4b\u8bd5docker<\/h4>\n<p>\u6d4b\u8bd5(Docker\u81ea\u5e26\u7684hello-world)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"547\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802dded95644.png\" width=\"839\" \/><\/p>\n<h4>2.6\u00a0\u67e5\u770bdocker\u7248\u672c<\/h4>\n<p>\u770b\u4e00\u4e0bdocker\u7684\u7248\u672c&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"54\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802ddedd0a38.png\" width=\"567\" \/><\/p>\n<h2><\/h2>\n<h2>\u4e09\u3001\u5728ECS\u4e0a\u5b89\u88c5Docker Compose<\/h2>\n<h4>3.1 \u65b9\u5f0f\u4e00&#xff1a;curl<\/h4>\n<p>curl&#xff1a;<\/p>\n<p># 1 \u56fd\u5185\u955c\u50cf\u79d2\u4e0b\u8f7d<br \/>\ncurl -L https:\/\/get.daocloud.io\/docker\/compose\/releases\/download\/1.25.5\/docker-compose-&#096;uname -s&#096;-&#096;uname -m&#096;  &gt; \/usr\/local\/bin\/docker-compose<br \/>\n# 2 \u4fee\u6539\u6587\u4ef6\u6267\u884c\u6743\u9650<br \/>\nsudo chmod &#043;x \/usr\/local\/bin\/docker-compose<br \/>\n#  3 \u521b\u5efa\u8f6f\u94fe<br \/>\nsudo ln -s \/usr\/local\/bin\/docker-compose \/usr\/bin\/docker-compose<br \/>\n# 4 \u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f<br \/>\ndocker-compose\u00a0&#8211;version <\/p>\n<h4>3.2 \u65b9\u5f0f\u4e8c&#xff1a;wget<\/h4>\n<p>wget&#xff1a;<\/p>\n<p># 1.\u53bbgithub\u5b98\u7f51\u641c\u7d22docker-compose&#xff0c;\u4e0b\u8f7d1.24.1\u7248\u672c\u7684Docker-Compose<br \/>\n# \u4e0b\u8f7d\u8def\u5f84&#xff1a;<br \/>\nwget https:\/\/github.com\/docker\/compose\/releases\/download\/1.24.1\/docker-compose-Linux-x86_64<\/p>\n<p># 2.\u8bbe\u7f6e\u6743\u9650<br \/>\n# \u9700\u8981\u5c06DockerCompose\u6587\u4ef6\u7684\u540d\u79f0\u4fee\u6539\u4e00\u4e0b&#xff0c;\u7ed9\u4e88DockerCompose\u6587\u4ef6\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u6743\u9650<br \/>\nmv docker-compose-Linux-x86_64 docker-compose<br \/>\nchmod 777 docker-compose<\/p>\n<p># 3.\u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>\n# \u65b9\u4fbf\u540e\u671f\u64cd\u4f5c&#xff0c;\u914d\u7f6e\u4e00\u4e2a\u73af\u5883\u53d8\u91cf<br \/>\n# \u5c06docker-compose\u6587\u4ef6\u79fb\u52a8\u5230\u4e86\/usr\/local\/bin&#xff0c;\u4fee\u6539\u4e86\/etc\/profile\u6587\u4ef6&#xff0c;\u7ed9\/usr\/local\/bin\u914d\u7f6e\u5230\u4e86PATH\u4e2d<\/p>\n<p>mv docker-compose \/usr\/local\/bin<br \/>\nvi \/etc\/profile<br \/>\n# \u6dfb\u52a0\u5185\u5bb9&#xff1a;export PATH&#061;\/usr\/local\/bin:$PATH<br \/>\nsource \/etc\/profile<\/p>\n<p># 4.\u6d4b\u8bd5<br \/>\n\u5728\u4efb\u610f\u76ee\u5f55\u4e0b\u8f93\u5165docker-compose <\/p>\n<h4>3.3 \u65b9\u5f0f\u4e09&#xff1a;pip<\/h4>\n<p>pip&#xff1a;<\/p>\n<p># 1.\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b89\u88c5setuptools\u3002<br \/>\npip3 install -U pip setuptools<br \/>\n# 2.\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b89\u88c5docker-compose\u3002<br \/>\npip3 install docker-compose<br \/>\n# 3.\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u9a8c\u8bc1docker-compose\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<br \/>\ndocker-compose &#8211;version <\/p>\n<h2><\/h2>\n<h2>\u56db\u3001\u6309\u7167dify\u63d0\u4f9b\u7684\u5b98\u65b9\u6559\u7a0b\u8fdb\u884c\u90e8\u7f72<\/h2>\n<p>\u514b\u9686dify \u6e90\u4ee3\u7801\u81f3\u672c\u5730\u73af\u5883&#xff08;\u8fd9\u91cc\u7684\u672c\u5730\u5c31\u662f\u8fd9\u53f0\u963f\u91cc\u4e91ECS&#xff09;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"165\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231909-6802ddedea867.png\" width=\"895\" \/><\/p>\n<p>\u5982\u679c\u6ca1\u6709git\u5de5\u5177&#xff0c;\u9700\u8981\u5b89\u88c5&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"322\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddee19322.png\" width=\"1044\" \/><\/p>\n<p>\u8fdb\u5165dify\u6e90\u4ee3\u7801\u7684 Docker \u76ee\u5f55&#xff1b;\u590d\u5236\u73af\u5883\u914d\u7f6e\u6587\u4ef6&#xff1b;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"82\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddee546fc.png\" width=\"627\" \/><\/p>\n<p>\u9009\u62e9\u5408\u9002\u7684\u547d\u4ee4\u6765\u542f\u52a8\u5bb9\u5668\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 \u00a0docker compose version \u547d\u4ee4\u68c0\u67e5\u7248\u672c&#xff0c;\u542f\u52a8 Docker \u5bb9\u5668&#xff1a;\u5982\u679c\u7248\u672c\u662f Docker Compose V2&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"285\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddee6efae.png\" width=\"1050\" \/><\/p>\n<p>\u62a5\u9519&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"189\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddeea4312.png\" width=\"1080\" \/><\/p>\n<p>\u5728\u5c1d\u8bd5\u7528docker-compose\u542f\u52a8\u5e94\u7528\u65f6\u9047\u5230\u7f51\u7edc\u521b\u5efa\u5931\u8d25\u7684\u9519\u8bef&#xff0c;\u5177\u4f53\u8868\u73b0\u4e3a\u65e0\u6cd5\u542f\u7528SKIPDNAT\u89c4\u5219\u7684iptables\u64cd\u4f5c\u3002\u9519\u8bef\u6e90\u4e8e\u9632\u706b\u5899\u5728Docker\u670d\u52a1\u542f\u52a8\u540e\u88ab\u5173\u95ed\u3002\u89e3\u51b3\u65b9\u6848\u662f\u91cd\u542fDocker\u670d\u52a1\u4ee5\u6d88\u9664\u6b64\u95ee\u9898\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"26\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddeed084b.png\" width=\"736\" \/><\/p>\n<p>\u91cd\u65b0\u542f\u52a8 Docker \u5bb9\u5668&#xff0c;&#xff0c;\u8fd0\u884c\u547d\u4ee4\u540e&#xff0c;\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u8f93\u51fa&#xff0c;\u663e\u793a\u6240\u6709\u5bb9\u5668\u7684\u72b6\u6001\u548c\u7aef\u53e3\u6620\u5c04&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"262\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231910-6802ddeee9b6e.png\" width=\"697\" \/><\/p>\n<p>\u6700\u540e\u68c0\u67e5\u662f\u5426\u6240\u6709\u5bb9\u5668\u90fd\u6b63\u5e38\u8fd0\u884c&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"143\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231911-6802ddef144f6.png\" width=\"1080\" \/><\/p>\n<p>\u5728\u8fd9\u4e2a\u8f93\u51fa\u4e2d&#xff0c;\u4f60\u5e94\u8be5\u53ef\u4ee5\u770b\u5230\u5305\u62ec 3 \u4e2a\u4e1a\u52a1\u670d\u52a1 api \/ worker \/ web&#xff0c;\u4ee5\u53ca 6 \u4e2a\u57fa\u7840\u7ec4\u4ef6 weaviate \/ db \/ redis \/ nginx \/ ssrf_proxy \/ sandbox \u3002\u90fd\u542f\u52a8\u4e86\u3002<\/p>\n<h2><\/h2>\n<h2>\u4e94\u3001\u5728ESC\u90e8\u7f72\u7684dify\u4e0a\u8fdb\u884c\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1<\/h2>\n<h4>5.1 \u914d\u7f6eESC\u5b89\u5168\u7ec4\u7684\u8bbf\u95ee\u89c4\u5219<\/h4>\n<p>\u6211\u4f7f\u7528\u672c\u673a\u53bb ping \u516c\u7f51 ip \u7ed3\u679c\u53ef\u4ee5 ping \u901a&#xff0c;\u76f4\u63a5\u4f7f\u7528\u5b83\u7ed9\u6211\u63d0\u4f9b\u7684\u516c\u7f51 ip \u8fdb\u884c\u8bbf\u95ee&#xff0c;\u7ed3\u679c\u663e\u793a\u8bbf\u95ee\u5931\u8d25&#xff0c;\u8fd9\u9700\u8981\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u914d\u7f6e&#xff1a;\u70b9\u51fb\u5b89\u5168\u7ec4&#xff0c;\u6dfb\u52a0\u8bbf\u95ee\u89c4\u5219&#xff0c;\u8bbe\u7f6e80\u7aef\u53e3&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"500\" src=\"2025-04-19phbyp0eeyir.png\" width=\"1080\" \/><\/p>\n<h4>5.2 \u516c\u7f51\u8bbf\u95ee<\/h4>\n<p>\u8f93\u5165\u516c\u7f51ip&#xff0c;\u5c31\u53ef\u4ee5\u8fdb\u5165\u90e8\u7f72\u5728ESC\u7684dify\u5e73\u53f0\u4e86<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"551\" src=\"2025-04-19z4oxjg5aw20.png\" width=\"1080\" \/><\/p>\n<h4>5.3\u00a0\u5f00\u53d1\u5e76\u53d1\u5e03AI\u5927\u6a21\u578b\u5e94\u7528&#xff08;Maas&#xff09;-\u6a21\u578b\u5373\u670d\u52a1<\/h4>\n<p>\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u6237&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"500\" src=\"2025-04-19fub1sw3svoq.png\" width=\"1080\" \/><\/p>\n<p>\u4e4b\u540e\u8fdb\u5165&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"544\" src=\"2025-04-19h2mj5jmamud.png\" width=\"1080\" \/><\/p>\n<p>\u5c31\u53ef\u4ee5\u5728\u8fd9\u53f0\u4e91\u670d\u52a1\u5668ESC\u4e0a\u8fdb\u884c\u5f00\u53d1\u5de5\u4f5c\u6d41\u6216\u8005Agent\u4e86\u3002<\/p>\n<p>\u4f5c\u8005\u7b80\u4ecb&#xff1a;<\/p>\n<p>\u8bfb\u7814\u671f\u95f4\u53d1\u88686\u7bc7SCI\u6570\u636e\u6316\u6398\u76f8\u5173\u8bba\u6587&#xff0c;\u73b0\u5728\u67d0\u7814\u7a76\u9662\u4ece\u4e8b\u6570\u636e\u7b97\u6cd5\u76f8\u5173\u79d1\u7814\u5de5\u4f5c&#xff0c;\u7ed3\u5408\u81ea\u8eab\u79d1\u7814\u5b9e\u8df5\u7ecf\u5386\u4e0d\u5b9a\u671f\u5206\u4eab\u5173\u4e8ePython\u3001\u673a\u5668\u5b66\u4e60\u3001\u6df1\u5ea6\u5b66\u4e60\u3001\u4eba\u5de5\u667a\u80fd\u7cfb\u5217\u57fa\u7840\u77e5\u8bc6\u4e0e\u5e94\u7528\u6848\u4f8b\u3002\u81f4\u529b\u4e8e\u53ea\u505a\u539f\u521b&#xff0c;\u4ee5\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u7406\u89e3\u548c\u5b66\u4e60&#xff0c;\u5173\u6ce8\u6211\u4e00\u8d77\u4ea4\u6d41\u6210\u957f\u3002\u9700\u8981\u6570\u636e\u96c6\u548c\u6e90\u7801\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u5173\u6ce8\u5e95\u90e8\u516c\u4f17\u53f7\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09_\u963f\u91cc\u4e91\u670d\u52a1\u5668\u90e8\u7f72dify<\/p>\n","protected":false},"author":2,"featured_media":23251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[144,81,956,51,96],"topic":[],"class_list":["post-23271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-dify","tag-python","tag-956","tag-51","tag-96"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \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\/23271.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09_\u963f\u91cc\u4e91\u670d\u52a1\u5668\u90e8\u7f72dify\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/23271.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T23:19:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231907-6802ddeb0d0fe.png\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23271.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/23271.html\",\"name\":\"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T23:19:12+00:00\",\"dateModified\":\"2025-04-18T23:19:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/23271.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/23271.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23271.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09\"}]},{\"@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":"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \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\/23271.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09_\u963f\u91cc\u4e91\u670d\u52a1\u5668\u90e8\u7f72dify","og_url":"https:\/\/www.wsisp.com\/helps\/23271.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T23:19:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418231907-6802ddeb0d0fe.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/23271.html","url":"https:\/\/www.wsisp.com\/helps\/23271.html","name":"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T23:19:12+00:00","dateModified":"2025-04-18T23:19:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/23271.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/23271.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/23271.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Python\u5927\u8bed\u8a00\u6a21\u578b\u7cfb\u5217\u3011\u5728\u963f\u91cc\u4e91ECS\u670d\u52a1\u5668\u4e0a\u90e8\u7f72dify\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\uff08\u5b8c\u6574\u6559\u7a0b\uff09"}]},{"@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\/23271","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=23271"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23271\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/23251"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=23271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=23271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=23271"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=23271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}