{"id":98033,"date":"2026-08-31T00:16:50","date_gmt":"2026-08-30T16:16:50","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/98033.html"},"modified":"2026-08-31T00:16:50","modified_gmt":"2026-08-30T16:16:50","slug":"ai%e5%a4%9aagent%e5%8d%8f%e4%bd%9c%e7%b3%bb%e7%bb%9f%e5%ae%9e%e6%88%98%ef%bc%88%e4%ba%94%e5%8d%81%e5%9b%9b%ef%bc%89%ef%bc%9a%e8%a3%85%e4%b8%aalinux%e7%89%88%ef%bc%8c%e5%9b%9b%e4%b8%aa%e5%9d%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/98033.html","title":{"rendered":"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740"},"content":{"rendered":"<p>\u7cfb\u5217\u7b2c54\u7bc7 | zip\u4e22\u4e86\u6743\u9650\u3001venv\u5fd8\u4e86\u5bb6\u3001logs\u6ca1\u5efa\u3001sudo\u5361\u4f4f\u2014\u2014\u4e00\u4e2a\u5b89\u88c5\u811a\u672c\u7684\u8840\u6cea<\/p>\n<h3>\u80cc\u666f<\/h3>\n<p>\u4e8b\u60c5\u8981\u4ece\u4e00\u53f0\u521a\u4e70\u7684Ubuntu\u670d\u52a1\u5668\u8bf4\u8d77\u3002\u7cfb\u7edf\u88c5\u597d&#xff0c;IP\u8fd8\u662f\u52a8\u6001\u7684\u2014\u2014\u91cd\u542f\u4e00\u6b21IP\u5c31\u6362\u4e00\u6b21&#xff0c;SSH\u914d\u7f6e\u5168\u5e9f\u3002<\/p>\n<p>\u4e3a\u4e86\u56fa\u5b9aIP&#xff0c;\u6211\u5728 \/etc\/netplan\/50-cloud-init.yaml \u91cc\u6298\u817e\u4e86\u534a\u5929&#xff0c;\u6700\u540e\u8fd8\u4e13\u95e8\u5199\u4e86\u4e2a 99-disable-network-config.cfg \u628acloud-init\u7684\u7f51\u7edc\u914d\u7f6e\u5173\u6389&#xff0c;\u624d\u7b97\u628a\u9759\u6001IP\u9489\u6b7b\u3002<\/p>\n<p>\u7136\u540e\u6211\u5f00\u59cb\u88c5\u4ea7\u54c1\u2014\u2014Linux\u7248\u5b89\u88c5\u5305\u3002<\/p>\n<p>\u6211\u4ee5\u4e3a&#034;\u88c5\u4e2aLinux\u7248&#034;\u5c31\u662f bash install.sh \u56de\u8f66\u3001\u56de\u8f66\u3001\u5b8c\u4e8b\u3002\u7ed3\u679c\u4e00\u4e2a\u4e0b\u5348&#xff0c;\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740\u6211\u3002<\/p>\n<hr \/>\n<h3>\u5751\u4e00&#xff1a;zip\u89e3\u538b\u5b8c&#xff0c;\u811a\u672c\u5168\u90fd&#034;\u4e0d\u80fd\u6267\u884c&#034;<\/h3>\n<p>\u5b89\u88c5\u5305\u662fzip\u683c\u5f0f\u3002\u89e3\u538b\u3001\u90e8\u7f72\u3001\u8dd1\u5b89\u88c5\u6838\u5fc3\u2014\u2014\u4e00\u5207\u6b63\u5e38\u3002\u76f4\u5230\u5b89\u88c5\u5b8c\u6210&#xff0c;\u6211\u6267\u884c bash start.sh&#xff1a;<\/p>\n<p>bash: start.sh: Permission denied<\/p>\n<p>\u4ec0\u4e48&#xff1f;start.sh\u662f\u6211\u521a\u751f\u6210\u7684&#xff0c;\u6743\u9650\u660e\u660e\u662f755\u554a&#xff1f;<\/p>\n<p>\u518d\u4ed4\u7ec6\u4e00\u770b\u2014\u2014\u4e0d\u53ea\u662fstart.sh&#xff0c;\u6574\u4e2a runtime\/venv316\/bin\/ \u548c runtime\/node\/bin\/ \u4e0b\u7684\u6240\u6709\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u6743\u9650\u4f4d\u5168\u4e22\u4e86\u3002<\/p>\n<p>\u6839\u56e0&#xff1a;zip\u683c\u5f0f\u4e0d\u4fdd\u5b58Unix\u6743\u9650\u4f4d\u3002\u6253\u5305\u673a\u4e0a venv316\/bin\/python \u662f755&#xff0c;zip\u538b\u7f29\u518d\u89e3\u538b\u5230\u53e6\u4e00\u53f0\u673a\u5668&#xff0c;\u5c31\u53d8\u6210\u4e86644\u2014\u2014\u80fd\u770b&#xff0c;\u4e0d\u80fd\u6267\u884c\u3002<\/p>\n<p>\u4fee\u590d&#xff1a;\u90e8\u7f72\u65f6\u904d\u5386\u6240\u6709bin\u76ee\u5f55&#xff0c;\u7edf\u4e00\u8865\u56de\u53ef\u6267\u884c\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token keyword\">for<\/span> d <span class=\"token keyword\">in<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;venv316\/bin&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;node\/bin&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;npm-global\/bin&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> f <span class=\"token keyword\">in<\/span> os<span class=\"token punctuation\">.<\/span>listdir<span class=\"token punctuation\">(<\/span>os<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span>rt_dst<span class=\"token punctuation\">,<\/span> d<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        p <span class=\"token operator\">&#061;<\/span> os<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span>rt_dst<span class=\"token punctuation\">,<\/span> d<span class=\"token punctuation\">,<\/span> f<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> os<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>isfile<span class=\"token punctuation\">(<\/span>p<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            os<span class=\"token punctuation\">.<\/span>chmod<span class=\"token punctuation\">(<\/span>p<span class=\"token punctuation\">,<\/span> os<span class=\"token punctuation\">.<\/span>stat<span class=\"token punctuation\">(<\/span>p<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>st_mode <span class=\"token operator\">|<\/span> <span class=\"token number\">0o111<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6559\u8bad&#xff1a;Linux\u4e0b\u5206\u53d1Python\/Node\u8fd0\u884c\u65f6&#xff0c;tar.gz\u4fdd\u7559\u6743\u9650\u4f4d&#xff0c;zip\u4e0d\u4fdd\u7559\u3002\u5982\u679c\u4f60\u6253\u5305\u9009zip&#xff0c;\u90e8\u7f72\u65f6&#034;\u8865\u6743\u9650&#034;\u8fd9\u4e00\u6b65\u4e00\u4e2a\u90fd\u4e0d\u80fd\u5c11\u3002<\/p>\n<hr \/>\n<h3>\u5751\u4e8c&#xff1a;venv\u5fd8\u4e86&#034;\u5bb6&#034;\u5728\u54ea\u2014\u2014pyvenv.cfg\u8fd8\u6307\u7740\u6253\u5305\u673a<\/h3>\n<p>\u6743\u9650\u8865\u597d\u4e86&#xff0c;\u518d\u8dd1&#xff1a;<\/p>\n<p>$ runtime\/venv316\/bin\/python <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\nFatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding<\/p>\n<p>Python\u76f4\u63a5\u5d29\u4e86\u3002<\/p>\n<p>\u6839\u56e0&#xff1a;Python\u865a\u62df\u73af\u5883\u7684 pyvenv.cfg \u91cc\u6709\u4e2a home &#061; \u5b57\u6bb5&#xff0c;\u8bb0\u5f55\u7684\u662f\u521b\u5efavenv\u65f6\u7528\u7684\u89e3\u91ca\u5668\u8def\u5f84\u3002\u6211\u7684venv\u662f\u5728\u6253\u5305\u673a\u4e0a\u7528uv\u521b\u5efa\u7684&#xff0c;home \u6307\u5411\u6253\u5305\u673a\u7684\u8def\u5f84&#xff08;\u6bd4\u5982 \/root\/.local\/share\/uv\/python\/&#8230;&#xff09;\u3002zip\u90e8\u7f72\u5230\u65b0\u673a\u5668\u540e&#xff0c;\u8fd9\u4e2a\u8def\u5f84\u6839\u672c\u4e0d\u5b58\u5728\u2014\u2014Python\u627e\u4e0d\u5230\u81ea\u5df1\u7684\u5bb6&#xff0c;\u542f\u52a8\u5373\u5d29\u6e83\u3002<\/p>\n<p>\u4fee\u590d&#xff1a;\u90e8\u7f72\u65f6\u91cd\u5199 pyvenv.cfg \u7684home&#xff0c;\u6307\u5411\u90e8\u7f72\u4f4d\u7f6e\u7684python&#xff1a;<\/p>\n<p><span class=\"token keyword\">for<\/span> line <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">open<\/span><span class=\"token punctuation\">(<\/span>pv<span class=\"token punctuation\">,<\/span> encoding<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> line<span class=\"token punctuation\">.<\/span>startswith<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;home &#061;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        lines<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;home &#061; <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>os<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span>rt_dst<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;venv316\/bin&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">\\\\n&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        lines<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span>line<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token builtin\">open<\/span><span class=\"token punctuation\">(<\/span>pv<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;w&#034;<\/span><span class=\"token punctuation\">,<\/span> encoding<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>writelines<span class=\"token punctuation\">(<\/span>lines<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6559\u8bad&#xff1a;venv\u662f&#034;\u8def\u5f84\u654f\u611f&#034;\u7684\u2014\u2014\u6253\u5305\u3001\u5206\u53d1\u3001\u6362\u76ee\u5f55&#xff0c;\u5fc5\u987b\u68c0\u67e5 pyvenv.cfg\u3002\u4f60\u4ee5\u4e3avenv\u662f\u81ea\u5305\u542b\u7684&#xff0c;\u5176\u5b9e\u5b83\u5e26\u7740\u4e00\u4e2a&#034;\u56de\u4e0d\u53bb\u7684\u5bb6&#034;\u3002<\/p>\n<hr \/>\n<h3>\u5751\u4e09&#xff1a;logs\u76ee\u5f55\u6ca1\u5efa\u2014\u2014\u670d\u52a1&#034;\u542f\u52a8\u6210\u529f&#034;\u4e86&#xff0c;\u5176\u5b9e\u6839\u672c\u6ca1\u8d77\u6765<\/h3>\n<p>\u524d\u4e24\u4e2a\u5751\u4fee\u5b8c&#xff0c;bash start.sh&#xff1a;<\/p>\n<p>\u5df2\u542f\u52a8 Web<span class=\"token punctuation\">(<\/span><span class=\"token number\">8899<\/span><span class=\"token punctuation\">)<\/span> \/ WS<span class=\"token punctuation\">(<\/span><span class=\"token number\">9000<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u7136\u540e\u6211\u8bbf\u95ee http:\/\/\u670d\u52a1\u5668IP:8899\u2014\u2014\u8fde\u63a5\u88ab\u62d2\u7edd\u3002<\/p>\n<p>\u6839\u56e0&#xff1a;\u542f\u52a8\u811a\u672c\u91cc\u662f\u8fd9\u4e48\u5199\u7684&#xff1a;<\/p>\n<p><span class=\"token function\">nohup<\/span> python app\/web_server.py <span class=\"token operator\">&gt;<\/span> logs\/web.log <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>&gt; logs\/web.log \u662f shell\u91cd\u5b9a\u5411\u2014\u2014\u5728\u542f\u52a8Python\u4e4b\u524d&#xff0c;shell\u5148\u53bb\u6253\u5f00 logs\/web.log\u3002\u4f46\u90e8\u7f72\u76ee\u5f55\u91cc\u6839\u672c\u6ca1\u6709 logs\/ \u6587\u4ef6\u5939\u2014\u2014\u4e8e\u662fshell\u76f4\u63a5\u62a5\u9519&#xff1a;<\/p>\n<p>bash: logs\/web.log: No such <span class=\"token function\">file<\/span> or directory<\/p>\n<p>nohup &#8230; &amp; \u6574\u4e2a\u547d\u4ee4\u5931\u8d25&#xff0c;Python\u538b\u6839\u6ca1\u542f\u52a8\u3002\u4f46\u811a\u672c\u540e\u9762\u8fd8\u6709 echo &#034;\u5df2\u542f\u52a8&#8230;&#034;\u2014\u2014echo\u7167\u6837\u6267\u884c&#xff0c;\u770b\u8d77\u6765\u5c31\u50cf\u542f\u52a8\u6210\u529f\u4e86\u3002<\/p>\n<p>\u4fee\u590d&#xff1a;\u542f\u52a8\u811a\u672c\u91cc\u5148\u5efa\u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> logs<\/p>\n<p>\u6559\u8bad&#xff1a;&#034;\u542f\u52a8\u6210\u529f&#034;\u7684\u63d0\u793a \u2260 \u670d\u52a1\u771f\u7684\u8d77\u6765\u4e86\u3002\u91cd\u5b9a\u5411\u8def\u5f84\u7684\u7236\u76ee\u5f55\u4e0d\u5b58\u5728&#xff0c;\u547d\u4ee4\u4f1a\u5728\u7a0b\u5e8f\u8fd0\u884c\u524d\u5c31\u5931\u8d25&#xff0c;\u800c\u4f60\u7684\u811a\u672c\u8fd8\u4f1a\u82e5\u65e0\u5176\u4e8b\u5730\u6253\u5370\u6210\u529f\u3002\u542f\u52a8\u811a\u672c\u5fc5\u987b mkdir -p \u515c\u5e95\u3002<\/p>\n<hr \/>\n<h3>\u5751\u56db&#xff1a;sudo\u9759\u9ed8\u5b89\u88c5&#xff0c;\u5361\u5728\u5bc6\u7801\u8f93\u5165<\/h3>\n<p>\u5b89\u88c5\u6838\u5fc3\u5728\u68c0\u6d4b\u5230\u7f3aNode.js\u65f6&#xff0c;\u4f1a\u5c1d\u8bd5\u81ea\u52a8\u5b89\u88c5&#xff1a;<\/p>\n<p>cmds <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>sudo<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">apt-get update&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>sudo<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">apt-get install -y nodejs npm&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token keyword\">for<\/span> c <span class=\"token keyword\">in<\/span> cmds<span class=\"token punctuation\">:<\/span><br \/>\n    r <span class=\"token operator\">&#061;<\/span> subprocess<span class=\"token punctuation\">.<\/span>run<span class=\"token punctuation\">(<\/span>c<span class=\"token punctuation\">,<\/span> shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> capture_output<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> text<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u9690\u85cf\u70b8\u5f39&#xff1a;\u5982\u679c\u5f53\u524d\u7528\u6237\u4e0d\u662froot&#xff0c;sudo \u4f1a\u5f39\u5bc6\u7801\u8f93\u5165\u3002\u800c subprocess.run \u6ca1\u6709\u63d0\u4f9b stdin\u2014\u2014sudo\u7b49\u5bc6\u7801\u7b49\u4e0d\u5230&#xff0c;\u76f4\u63a5\u5931\u8d25&#xff1b;\u6216\u8005\u5728\u67d0\u4e9b\u73af\u5883\u4e0b\u6302\u8d77\u4e0d\u52a8&#xff0c;\u5b89\u88c5\u8fdb\u7a0b\u5c31\u8fd9\u4e48\u5361\u6b7b\u3002<\/p>\n<p>\u6839\u56e0&#xff1a;\u5b89\u88c5\u811a\u672c\u5047\u8bbe\u4e86&#034;\u8981\u4e48root&#xff0c;\u8981\u4e48sudo\u514d\u5bc6&#034;&#xff0c;\u4f46\u5b9e\u9645\u90e8\u7f72\u7684\u670d\u52a1\u5668\u4e24\u8005\u90fd\u4e0d\u4e00\u5b9a\u6ee1\u8db3\u3002<\/p>\n<p>\u4fee\u590d&#xff1a;\u8981\u4e48\u68c0\u6d4b\u5230\u975eroot\u4e14sudo\u9700\u8981\u5bc6\u7801\u65f6\u660e\u786e\u63d0\u793a&#xff08;\u800c\u4e0d\u662f\u9759\u9ed8\u5361\u4f4f&#xff09;&#xff0c;\u8981\u4e48\u5e72\u8106\u5185\u7f6e\u8fd0\u884c\u65f6\u2014\u2014\u628aNode\/Python\u5168\u6253\u8fdb\u5305&#xff0c;\u90e8\u7f72\u540e\u4e0d\u4f9d\u8d56\u7cfb\u7edfapt\u3002<\/p>\n<p>\u6559\u8bad&#xff1a;\u5b89\u88c5\u811a\u672c\u6700\u6015&#034;\u9759\u9ed8&#034;\u2014\u2014sudo\u8981\u5bc6\u7801\u3001\u5305\u7ba1\u7406\u5668\u8981\u4ea4\u4e92\u3001\u6743\u9650\u4e0d\u8db3\u2014\u2014\u6bcf\u4e00\u79cd\u90fd\u5e94\u8be5\u660e\u786e\u63d0\u793a\u7528\u6237\u600e\u4e48\u5904\u7406&#xff0c;\u800c\u4e0d\u662f\u6084\u6084\u5931\u8d25\u6216\u5361\u6b7b\u3002<\/p>\n<hr \/>\n<h3>\u7ecf\u9a8c\u603b\u7ed3<\/h3>\n<ul>\n<li>zip\u4e0d\u4fdd\u7559Unix\u6743\u9650\u4f4d\u2014\u2014\u90e8\u7f72\u5fc5\u987b\u8865chmod<\/li>\n<li>venv\u7684 pyvenv.cfg \u6307\u5411\u6253\u5305\u673a\u2014\u2014\u6362\u673a\u5668\u5fc5\u987b\u91cd\u5199home<\/li>\n<li>\u91cd\u5b9a\u5411 &gt; logs\/web.log \u7684\u7236\u76ee\u5f55\u4e0d\u5b58\u5728\u2014\u2014\u670d\u52a1\u9759\u9ed8\u8d77\u4e0d\u6765&#xff0c;\u8fd8\u6253\u5370&#034;\u5df2\u542f\u52a8&#034;<\/li>\n<li>sudo\/apt\u4ea4\u4e92\u2014\u2014\u975eroot\u73af\u5883\u5fc5\u987b\u663e\u5f0f\u5904\u7406&#xff0c;\u4e0d\u80fd\u9759\u9ed8\u5361\u6b7b<\/li>\n<\/ul>\n<p>\u88c5\u5b8cLinux\u7248&#xff0c;\u6211\u6700\u5927\u7684\u611f\u53d7\u662f&#xff1a;&#034;\u5b89\u88c5\u5305\u80fd\u88c5\u4e0a&#034;\u548c&#034;\u5b89\u88c5\u5305\u80fd\u8dd1\u8d77\u6765&#034;\u4e4b\u95f4&#xff0c;\u9694\u7740\u4e00\u6761\u6cb3\u3002\u6cb3\u5e95\u4e0b\u5168\u662f\u6743\u9650\u3001\u8def\u5f84\u3001\u76ee\u5f55\u8fd9\u4e9b\u6ca1\u4eba\u5199\u8fdbREADME\u7684\u5c0f\u5751\u3002<\/p>\n<p>\u800c\u5b83\u4eec\u6bcf\u4e00\u4e2a&#xff0c;\u90fd\u53ea\u5dee\u4e00\u884c\u4ee3\u7801\u5c31\u80fd\u907f\u514d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u7b2c54\u7bc7 | zip\u4e22\u4e86\u6743\u9650\u3001venv\u5fd8\u4e86\u5bb6\u3001logs\u6ca1\u5efa\u3001sudo\u5361\u4f4f\u2014\u2014\u4e00\u4e2a\u5b89\u88c5\u811a\u672c\u7684\u8840\u6cea\u80cc\u666f<br \/>\n\u4e8b\u60c5\u8981\u4ece\u4e00\u53f0\u521a\u4e70\u7684Ubuntu\u670d\u52a1\u5668\u8bf4\u8d77\u3002\u7cfb\u7edf\u88c5\u597d&#xff0c;IP\u8fd8\u662f\u52a8\u6001\u7684\u2014\u2014\u91cd\u542f\u4e00\u6b21IP\u5c31\u6362\u4e00\u6b21&#xff0c;SSH\u914d\u7f6e\u5168\u5e9f\u3002<br \/>\n\u4e3a\u4e86\u56fa\u5b9aIP&#xff0c;\u6211\u5728 \/etc\/netplan\/50-cloud-init.yaml \u91cc\u6298\u817e\u4e86\u534a\u5929&#xff0c;\u6700\u540e\u8fd8\u4e13\u95e8\u5199\u4e86\u4e2a 99-disable-network-config.cfg \u628acloud-init\u7684\u7f51\u7edc\u914d\u7f6e\u5173<\/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":[10187,58,43,44],"topic":[],"class_list":["post-98033","post","type-post","status-publish","format-standard","hentry","category-server","tag-codingplan","tag-linux","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>AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \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\/98033.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7cfb\u5217\u7b2c54\u7bc7 | zip\u4e22\u4e86\u6743\u9650\u3001venv\u5fd8\u4e86\u5bb6\u3001logs\u6ca1\u5efa\u3001sudo\u5361\u4f4f\u2014\u2014\u4e00\u4e2a\u5b89\u88c5\u811a\u672c\u7684\u8840\u6cea\u80cc\u666f \u4e8b\u60c5\u8981\u4ece\u4e00\u53f0\u521a\u4e70\u7684Ubuntu\u670d\u52a1\u5668\u8bf4\u8d77\u3002\u7cfb\u7edf\u88c5\u597d&#xff0c;IP\u8fd8\u662f\u52a8\u6001\u7684\u2014\u2014\u91cd\u542f\u4e00\u6b21IP\u5c31\u6362\u4e00\u6b21&#xff0c;SSH\u914d\u7f6e\u5168\u5e9f\u3002 \u4e3a\u4e86\u56fa\u5b9aIP&#xff0c;\u6211\u5728 \/etc\/netplan\/50-cloud-init.yaml \u91cc\u6298\u817e\u4e86\u534a\u5929&#xff0c;\u6700\u540e\u8fd8\u4e13\u95e8\u5199\u4e86\u4e2a 99-disable-network-config.cfg \u628acloud-init\u7684\u7f51\u7edc\u914d\u7f6e\u5173\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/98033.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-30T16:16:50+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=\"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\/98033.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/98033.html\",\"name\":\"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-30T16:16:50+00:00\",\"dateModified\":\"2026-08-30T16:16:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/98033.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/98033.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/98033.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740\"}]},{\"@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":"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \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\/98033.html","og_locale":"zh_CN","og_type":"article","og_title":"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7cfb\u5217\u7b2c54\u7bc7 | zip\u4e22\u4e86\u6743\u9650\u3001venv\u5fd8\u4e86\u5bb6\u3001logs\u6ca1\u5efa\u3001sudo\u5361\u4f4f\u2014\u2014\u4e00\u4e2a\u5b89\u88c5\u811a\u672c\u7684\u8840\u6cea\u80cc\u666f \u4e8b\u60c5\u8981\u4ece\u4e00\u53f0\u521a\u4e70\u7684Ubuntu\u670d\u52a1\u5668\u8bf4\u8d77\u3002\u7cfb\u7edf\u88c5\u597d&#xff0c;IP\u8fd8\u662f\u52a8\u6001\u7684\u2014\u2014\u91cd\u542f\u4e00\u6b21IP\u5c31\u6362\u4e00\u6b21&#xff0c;SSH\u914d\u7f6e\u5168\u5e9f\u3002 \u4e3a\u4e86\u56fa\u5b9aIP&#xff0c;\u6211\u5728 \/etc\/netplan\/50-cloud-init.yaml \u91cc\u6298\u817e\u4e86\u534a\u5929&#xff0c;\u6700\u540e\u8fd8\u4e13\u95e8\u5199\u4e86\u4e2a 99-disable-network-config.cfg \u628acloud-init\u7684\u7f51\u7edc\u914d\u7f6e\u5173","og_url":"https:\/\/www.wsisp.com\/helps\/98033.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-30T16:16:50+00:00","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\/98033.html","url":"https:\/\/www.wsisp.com\/helps\/98033.html","name":"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-30T16:16:50+00:00","dateModified":"2026-08-30T16:16:50+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/98033.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/98033.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/98033.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI\u591aAgent\u534f\u4f5c\u7cfb\u7edf\u5b9e\u6218\uff08\u4e94\u5341\u56db\uff09\uff1a\u88c5\u4e2aLinux\u7248\uff0c\u56db\u4e2a\u5751\u6392\u961f\u7b49\u7740"}]},{"@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\/98033","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=98033"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/98033\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=98033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=98033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=98033"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=98033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}