{"id":11721,"date":"2025-04-18T18:57:58","date_gmt":"2025-04-18T10:57:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/11721.html"},"modified":"2025-04-18T18:57:58","modified_gmt":"2025-04-18T10:57:58","slug":"%e3%80%90%e7%ac%94%e8%ae%b0%e3%80%91llm%ef%bd%9cubuntu22%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%9e%81%e7%ae%80%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2deepseek%e8%81%94%e7%bd%91%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/11721.html","title":{"rendered":"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u5199\u4e8e2025\/02\/15&#xff0c;\u6211\u521a\u8fd9\u4e48\u90e8\u7f72\u597d&#xff0c;\u6e05\u534e\u90a3\u8fb9\u5c31\u8bf4\u81ea\u5df1\u80fd\u91cf\u5316671B\u7528\u5185\u5b58\u52a0\u901f\u8ba9\u5355\u53614090\u4e5f\u80fd\u8dd1&#xff0c;17\u53f7\u6d59\u5927\u516c\u5f00\u8bf4\u81ea\u5df1\u8981\u5c06\u6ee1\u8840R1\u516c\u5f00\u7ed9\u5168\u56fd\u9ad8\u6821\u4f7f\u7528\u2026\u2026\u8d76\u4e0d\u4e0a\u53d8\u5316\u4e86\u5c5e\u4e8e\u662f\u3002 2025\/04\/10\u66f4\u65b0&#xff1a;\u540e\u6765\u53d1\u73b0\u6d59\u5927\u516c\u5f00\u7684\u662f\u964d\u7ea7\u7248\u672c&#xff0c;\u6e05\u534e\u90a3\u8fb9\u7684\u52a0\u901f\u90e8\u7f72\u4e0d\u592a\u597d\u5f04&#xff0c;\u6700\u540e\u6700\u5e38\u7528\u7684\u8fd8\u662f\u81ea\u5df1\u90e8\u7f72\u7684\u672c\u5730\u7248&#xff0c;\u4e16\u4e8b\u96be\u6599\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6211\u81ea\u5df1\u8bb0\u5f55\u7684\u6700\u7b80\u5355\u7684\u65b9\u5f0f&#xff0c;\u8981\u662f\u6709\u95ee\u9898\u8bf7\u8bc4\u8bba\u533a\u7559\u8a00&#xff0c;\u6211\u53ef\u80fd\u6709\u7684\u4e1c\u897f\u4e5f\u4f1a\u6f0f\u5199\u3002<\/p>\n<p>\u4ee5\u4e0b\u5206\u6210\u4e09\u90e8\u5206&#xff0c;\u5148\u6559\u4ee5\u4e0b\u600e\u4e48\u5b89\u88c5ollama\u53bb\u672c\u5730\u62c9\u6a21\u578b&#xff0c;\u7136\u540e\u518d\u63a8\u8350\u4e00\u4e0bPage Assist&#xff0c;\u518d\u4ecb\u7ecd\u4e00\u4e0bopenwebui 0.5.10\u7684\u4f7f\u7528\u65b9\u5f0f&#xff0c;\u8865\u5145\u4e00\u4e0b\u6587\u4ef6\u4e0a\u4f20\u3001\u8054\u7f51\u641c\u7d22\u529f\u80fd\u7684\u8bbe\u7f6e\u65b9\u5f0f\u3002<\/p>\n<p>\u6211\u81ea\u5df1\u7684Ubuntu\u7248\u672c\u662f22&#xff0c;\u5982\u679c\u4f60\u7684\u6bd4\u8f83\u4f4e\u5c31\u4e0d\u8981\u770b\u6211\u7684\u535a\u5ba2\u4e86&#xff0c;\u56e0\u4e3apython\u7248\u672c\u9ebb\u70e6\u4e8b\u5f88\u591a\u3002\u9ad8\u7684\u53ef\u4ee5\u770b\u3002<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u672c\u5730\u90e8\u7f72<\/li>\n<li>\n<ul>\n<li>\u90e8\u7f72\u8fc7\u7a0b<\/li>\n<li>\u4fee\u590d\u4e00\u4e0b<\/li>\n<\/ul>\n<\/li>\n<li>Page Assist&#xff08;\u63a8\u8350&#xff09;<\/li>\n<li>\n<ul>\n<li>\u7b2c\u4e00\u6b65&#xff0c;\u7528VSCode\u8fde\u63a5\u4f60\u7684\u670d\u52a1\u5668<\/li>\n<li>\u7b2c\u4e8c\u6b65&#xff0c;\u5b89\u88c5\u6d4f\u89c8\u5668\u63d2\u4ef6Page Assist<\/li>\n<\/ul>\n<\/li>\n<li>Openwebui&#xff08;\u4e2a\u4eba\u7528\u6237\u4e0d\u63a8\u8350\u4f7f\u7528\u54c8&#xff0c;\u9ebb\u70e6\u6b7b\u4e86&#xff09;<\/li>\n<li>\n<ul>\n<li>\u4e00\u3001\u90e8\u7f72Open WebUI<\/li>\n<li>\u4e8c\u3001\u90e8\u7f72API<\/li>\n<li>\u4fee\u590d\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd<\/li>\n<li>\u8054\u7f51\u641c\u7d22\u529f\u80fd<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u672c\u5730\u90e8\u7f72<\/h3>\n<h4>\u90e8\u7f72\u8fc7\u7a0b<\/h4>\n<p>\u8fd9\u4e9b\u6b65\u9aa4\u90fd\u5f88\u7b80\u5355\u54c8&#xff0c;\u5c31\u4e0d\u5217\u5c0f\u6807\u9898\u4e86&#xff0c;\u76f4\u63a5\u7528\u5e8f\u53f7\u4e86\u3002<\/p>\n<li>\u5b89\u88c5ollama&#xff1a;curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/li>\n<li>\u542f\u52a8\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f&#xff1a;<span class=\"token function\">service<\/span> ollama start<br \/>\nsystemctl <span class=\"token builtin class-name\">enable<\/span> ollama\n <\/li>\n<li>\u62c9\u53d6DeepSeek&#xff1a;ollama run deepseek-r1:70b<\/li>\n<li>\u62c9\u53d6\u540e\u5c31\u6709\u7ec8\u7aef\u4ea4\u4e92&#xff0c;\u968f\u4fbf\u6253\u70b9\u4ec0\u4e48\u6d4b\u8bd5\u4e00\u4e0b&#xff0c;\u5982\u679c\u53d1\u73b0\u6ca1\u6709\u8f93\u51fa\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u6211\u8fd9\u7bc7\u535a\u5ba2&#xff1a;\u3010BUG\u3011LLM&#xff5c;Ubuntu \u7528 ollama \u90e8\u7f72 DeepSeek \u4f46\u6ca1\u8f93\u51fa&#xff0c;llama \u6709\u8f93\u51fa-CSDN\u535a\u5ba2<\/li>\n<p>\u8981\u62c9\u591a\u5c11\u5927\u5c0f\u53ef\u4ee5\u53c2\u8003\u4e0b\u8868&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105753-68023031bce8c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8dd1\u5206\u7ed3\u679c&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105753-68023031ebe5d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6211\u81ea\u5df1\u7684\u73af\u5883\u662fGPU 4090 24G&#xff0c;\u62c9\u53d6\u4e8670b\u548c7b&#xff0c;70b\u6709\u70b9\u5361\u5361\u7684&#xff0c;7b\u8fd8\u597d\u3002<\/p>\n<p>\u8868\u683c\u6765\u6e90&#xff1a;\u5728Linux\u670d\u52a1\u5668\u4e2d\u90e8\u7f72Deepseek\u7b49\u5927\u8bed\u8a00\u6a21\u578b | \u9999\u83c7\u80a5\u725b\u7684\u535a\u5ba2<\/p>\n<p>\u5982\u679c\u60f3\u6d4b\u8bd5\u81ea\u5df1\u7684\u7535\u8111\u7684\u901f\u5ea6&#xff0c;\u53ef\u4ee5\u8fd0\u884collama\u6307\u4ee4\u7684\u65f6\u5019\u6dfb\u52a0&#8211;verbose\u53c2\u6570&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105754-680230320e6f0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u4fee\u590d\u4e00\u4e0b<\/h4>\n<p>\u53ef\u4ee5\u76f4\u63a5\u70b9\u5f00\u8fd9\u4e2a\u770b&#xff1a;\u3010BUG\u3011LLM&#xff5c;DeepSeek-R1 \u672c\u5730\u90e8\u7f72\u56de\u590d\u4e0d\u5168\u5bb9\u6613\u4e2d\u65adError: an error was encountered while running the model: unexpected-CSDN\u793e\u533a<\/p>\n<p>\u6700\u597d\u5728\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u4fee\u590d\u4e00\u4e0b&#xff0c;\u4e0d\u7136\u5bb9\u6613\u51fa\u73b0\u56de\u590d\u5230\u4e00\u534a\u7a81\u7136\u6ca1\u4e86\u7684\u60c5\u51b5&#xff0c;\u800c\u4e14\u4fee\u590d\u4e4b\u540e\u8fd8\u4f1a\u54cd\u5e94\u901f\u5ea6\u5feb\u4e00\u4e9b\u3002<\/p>\n<p>\u95ee\u9898\u6536\u5f55&#xff1a;\u300aError: an error was encountered while running the model: unexpected EOF (8x H100, deepseek-r1:671b\u300b<\/p>\n<p>\u6211\u6700\u7ec8\u89e3\u51b3\u4e86\u7684\u529e\u6cd5&#xff1a; \u521b\u5efa\u65b0\u7684modefile&#xff0c;&#xff08;\u628a\u4e0b\u9762\u90a3\u4e2a\u4ee3\u7801\u7247\u6bb5\u7684\u6a21\u578b\u91cf\u7ea7\u6539\u6210\u81ea\u5df1\u7684&#xff0c;\u6bd4\u5982\u6211\u53ea\u662f\u4fee\u590d14b&#xff0c;\u5c31\u628a671b\u6539\u621014b&#xff09;<\/p>\n<p>cat &gt;Modelfile &lt;&lt;EOF<br \/>\nFROM deepseek-r1:671b<br \/>\nPARAMETER num_ctx 24576<br \/>\nPARAMETER num_predict 8192<br \/>\nEOF<br \/>\nollama create deepseek-r1:671b-fixed -f Modelfile<\/p>\n<p>\u8fd0\u884c<\/p>\n<p>ollama run deepseek-r1:671b-fixed<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105754-680230323edb0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>Page Assist&#xff08;\u63a8\u8350&#xff09;<\/h3>\n<p>\u53c2\u8003&#xff1a;\u56fd\u5185&#xff0c;\u600e\u4e48\u4f7f\u7528open webui \u7f51\u7edc\u641c\u7d22\u529f\u80fd&#xff0c;\u6709\u5927\u4f6c\u6307\u5bfc\u4e00\u4e0b\u561b&#xff1f; \u00b7 open-webui\/open-webui \u00b7 Discussion #3851<\/p>\n<h4>\u7b2c\u4e00\u6b65&#xff0c;\u7528VSCode\u8fde\u63a5\u4f60\u7684\u670d\u52a1\u5668<\/h4>\n<p>\u7b2c\u4e00\u6b65&#xff0c;\u4f60\u53ea\u9700\u8981\u7528VSCode\u8fde\u63a5\u4f60\u7684\u670d\u52a1\u5668&#xff0c;\u5b83\u5c31\u4f1a\u81ea\u52a8\u7aef\u53e3\u6620\u5c04&#xff0c;\u628a\u4f60\u7684127.0.0.1\u548c\u670d\u52a1\u5668\u7684\u5173\u8054\u8d77\u6765&#xff0c;\u4f60\u5c31\u53ef\u4ee5\u7528\u670d\u52a1\u5668\u4e0a\u5df2\u6709\u7684ollama\u670d\u52a1\u7c7b\u3002<\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff0c;\u5b89\u88c5\u6d4f\u89c8\u5668\u63d2\u4ef6Page Assist<\/h4>\n<p>\u7b14\u8005\u6ce8&#xff1a;\u6211\u81ea\u5df1\u53ea\u5c1d\u8bd5\u4e86Edge\u7684&#xff0c;\u53ef\u4ee5\u54c8\u3002<\/p>\n<p>\u5168\u5e73\u53f0(PC\u3001Mac\u3001\u5b89\u5353\u3001iOS)\u5b89\u88c5\u65b9\u6848\u5982\u4e0b(\u81ea\u5e26\u601d\u7ef4\u94fe\u663e\u793a\u652f\u6301\u548c\u65e0\u9700\u8bbe\u7f6eAPI\u7684\u8054\u7f51\u641c\u7d22&#xff0c;\u5982\u767e\u5ea6\u3001\u641c\u72d7\u7b49&#xff0c;\u4e5f\u652f\u6301SearXNG&#xff0c;\u4e0d\u540c\u641c\u7d22\u5f15\u64ce\u641c\u7d22\u5185\u5bb9\u4e0d\u540c&#xff0c;\u6839\u636e\u9700\u6c42\u9009\u62e9)&#xff1a;<\/p>\n<p>1\u3001PC\u3001Mac\u6d4f\u89c8\u5668\u76f4\u63a5\u5b89\u88c5\u63d2\u4ef6\u5373\u53ef(\u9ed8\u8ba4\u542f\u7528Ollama\u8fde\u63a5\u72b6\u6001\u68c0\u67e5&#xff0c;\u53ef\u8bbe\u7f6e\u4e2d\u7981\u7528) Chrome: https:\/\/chromewebstore.google.com\/detail\/page-assist-%E6%9C%AC%E5%9C%B0-ai-%E6%A8%A1%E5%9E%8B%E7%9A%84-web\/jfgfiigpkhlkbnfnbobbkinehhfdhndo Edge: https:\/\/microsoftedge.microsoft.com\/addons\/detail\/page-assist-a-web-ui-fo\/ogkogooadflifpmmidmhjedogicnhooa Firefox: https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/page-assist\/<\/p>\n<p>2\u3001\u5b89\u5353\u624b\u673a\u53ef\u4ee5\u4f7f\u7528kiwi\u6d4f\u89c8\u5668(\u9700\u8981\u8c37\u6b4c\u6846\u67b6)&#xff1a; https:\/\/github.com\/kiwibrowser\/src.next\/releases \u518d\u5b89\u88c5\u8be5\u6269\u5c55Chrome\u7248&#xff0c;\u6216\u4f7f\u7528\u5b89\u5353Firefox\u6d4f\u89c8\u5668\u5b89\u88c5Firefox\u7248\u63d2\u4ef6&#xff0c;\u8054\u7f51\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u65e0\u9700\u8bbe\u7f6e\u7684\u641c\u7d22\u5f15\u64ce\u548c\u81ea\u5efa\u6216\u516c\u5171SearXNG\u670d\u52a1&#xff0c;\u56fd\u5185\u5efa\u8bae\u76f4\u63a5\u9009baidu\u5373\u53ef&#xff0c;\u641c\u7d22\u7ed3\u679c\u5efa\u8bae\u8bbe\u7f6e50 (token\u6d88\u8017\u66f4\u591a&#xff0c;\u4f46\u6548\u679c\u66f4\u597d)<\/p>\n<p>\u81f3\u6b64\u4f60\u5c31\u53ef\u4ee5\u7528\u4e0a\u6700\u57fa\u672c\u7684\u8054\u7f51\u641c\u7d22\u80fd\u529b&#043;R1\u5927\u6a21\u578b\u4e86&#xff01;\u5feb\u901f\u9ad8\u6548\u4e0d\u8d39\u52b2&#xff0c;\u7701\u4e0b\u51e0\u767e\u5146\u7684\u672c\u5730Web\u5ba2\u6237\u7aef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105754-680230328b103.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>Openwebui&#xff08;\u4e2a\u4eba\u7528\u6237\u4e0d\u63a8\u8350\u4f7f\u7528\u54c8&#xff0c;\u9ebb\u70e6\u6b7b\u4e86&#xff09;<\/h3>\n<p>\u6ce8\u610f\u81ea\u5df1\u7684\u7528\u6237\u8981\u6709Root\u6743\u9650\u54c8&#xff0c;\u6ca1\u6709\u5c31\u522b\u642d\u4e86&#xff0c;\u627e\u4f60\u4eec\u7ba1\u7406\u5458\u53bb\u3002<\/p>\n<p>&#xff08;openwebui&#xff0c;\u4e3b\u8981\u662f\u65b9\u4fbf\u591a\u7528\u6237\u5171\u4eab&#xff0c;\u5b83\u529f\u80fd\u5f88\u5b8c\u5584&#xff0c;\u641c\u7d22\u548c\u77e5\u8bc6\u5e93\u4ec0\u4e48\u7684\u4e5f\u90fd\u6709&#xff09;<\/p>\n<p>\u6211\u7684\u7248\u672c&#xff1a;openwebui 0.5.10<\/p>\n<h4>\u4e00\u3001\u90e8\u7f72Open WebUI<\/h4>\n<p>\u9996\u5148&#xff0c;\u8fd9\u79cd\u6d89\u53ca\u5230\u670d\u52a1\u7684\u64cd\u4f5c\u5148\u6e05\u7a7a\u4e00\u4e0b\u5f53\u524d\u7f13\u5b58\u7684sudo\u5bc6\u7801&#xff0c;\u907f\u514dsystemctl enable \u6307\u4ee4\u6267\u884c\u4e0d\u4e86&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> -k<\/p>\n<p>\u65b0\u5efa\u4e00\u4e2a\u7528\u6237openwebui\u7528\u4e8e\u8fd0\u884cOpen WebUI\u3002\u672c\u6587\u4e2d&#xff0c;\u5c06\u628a\u7a0b\u5e8f\u5b89\u88c5\u5728\/opt\/openwebui\u76ee\u5f55\u4e2d\u3002<\/p>\n<p><span class=\"token function\">mkdir<\/span> \/opt\/openwebui<br \/>\nadduser openwebui<\/p>\n<p>\u8bbe\u7f6e\u597d\u5bc6\u7801&#xff0c;\u518d\u5207\u6362\u5230\u7528\u6237&#xff1a;<\/p>\n<p><span class=\"token function\">chown<\/span> -R openwebui \/opt\/openwebui<br \/>\n<span class=\"token function\">su<\/span> openwebui<\/p>\n<p>\u5207\u6362\u7528\u6237\u540e\u8fdb\u5165\u8fd9\u4e2a\u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> \/opt\/openwebui<\/p>\n<p>\u7136\u540e&#xff0c;\u6211\u4eec\u65b0\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883 (venv)&#xff0c;\u5e76\u4f7f\u7528VENV\u4e2d\u7684PIP\u5b89\u88c5Open WebUI\u3002<\/p>\n<p>python3 -m venv .\/openwebui-venv<br \/>\n\/opt\/openwebui\/openwebui-venv\/bin\/pip3 <span class=\"token function\">install<\/span> open-webui<\/p>\n<p>\u63a8\u8350\u4f7f\u7528\/opt\/openwebui\/openwebui-venv\/bin\/pip3 install -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple open-webui\u5b89\u88c5&#xff0c;\u56e0\u4e3a\u5b98\u65b9pip\u6e90\u592a\u5361\u4e86\u3002<\/p>\n<p>\u66f4\u65b0\u65b0\u7248\u672c&#xff0c;\u53ea\u8981\u8fd0\u884c\u8fd9\u4e2a\u6307\u4ee4\u5c31\u884c&#xff1a;\/opt\/openwebui\/openwebui-venv\/bin\/pip3 install open-webui &#8211;upgrage<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u62a5\u9519&#xff0c;Open WebUI\u5c31\u5b89\u88c5\u597d\u4e86\u3002<\/p>\n<p>\u6211\u4eec\u6765\u5199\u4e00\u4e2aSystemD\u670d\u52a1&#xff0c;\u5c06Open WebUI\u8fd0\u884c\u5728\u540e\u53f0\u5e76\u5b9e\u73b0\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<p>\u7f16\u8f91\u6587\u4ef6\/etc\/systemd\/system\/openwebui.service&#xff0c;\u8f93\u5165\u4e0b\u9762\u7684\u5185\u5bb9&#xff08;\u5982\u679c\u4f60\u8981\u6539\u7aef\u53e3\u5c31\u4fee\u6539\u4e00\u4e0b8080\u6539\u6210\u4f60\u81ea\u5df1\u60f3\u8981\u7684\u7aef\u53e3&#xff09;&#xff1a;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;OpenWebUI<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nUser&#061;openwebui<br \/>\nWorkingDirectory&#061;\/opt\/openwebui\/openwebui-venv<br \/>\nExecStart&#061;\/opt\/openwebui\/openwebui-venv\/bin\/open-webui serve &#8211;port 8080<br \/>\nRestart&#061;always<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u4fdd\u5b58\u9000\u51fa\u540e&#xff0c;\u5207\u6362\u56de\u539f\u672c\u7684\u6709root\u6743\u9650\u7684\u7528\u6237&#xff1a;<\/p>\n<p><span class=\"token function\">su<\/span> \u4e4b\u524d\u7684\u7528\u6237<\/p>\n<p>\u5b89\u88c5\u4e00\u4e9b\u5173\u952e\u4f9d\u8d56&#xff0c;\u542f\u52a8\u8be5\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> sqlite3 <span class=\"token comment\"># fix sqlite3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apache2-utils <span class=\"token comment\"># fix htpasswd<\/span><\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> -R openwebui:openwebui \/opt\/openwebui\/openwebui-venv\/lib\/python3.12\/site-packages\/open_webui\/data<\/p>\n<p>systemctl daemon-reload <span class=\"token comment\"># \u5982\u679c\u8fd0\u884c\u4e0d\u4e86\u5c31sudo<\/span><br \/>\n<span class=\"token function\">service<\/span> openwebui start <span class=\"token comment\"># \u5982\u679c\u8fd0\u884c\u4e0d\u4e86\u5c31sudo<\/span><br \/>\nsystemctl <span class=\"token builtin class-name\">enable<\/span> openwebui <span class=\"token comment\"># \u5982\u679c\u8fd0\u884c\u4e0d\u4e86\u5c31sudo<\/span><\/p>\n<p>systemctl enable openwebui\u7684\u65f6\u5019&#xff0c;\u591a\u7528\u6237\u7684\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u62a5\u5947\u602a\u7684\u9519\u8bef&#xff0c;\u4f8b\u5982\u4e0b\u56fe&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105755-680230333acd4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u89e3\u51b3\u529e\u6cd5&#xff1a;<\/p>\n<li>\u5207\u6362\u56de\u80fd\u7528sudo\u7684\u7528\u6237&#xff1a;su \u4f60\u81ea\u5df1\u7684\u7528\u6237\u540d<\/li>\n<li>\u6e05\u9664\u5bc6\u7801\u7f13\u5b58&#xff1a;sudo -k<\/li>\n<li>\u91cd\u65b0\u6267\u884c\u6307\u4ee4&#xff1a;sudo \u67d0\u67d0\u6307\u4ee4<\/li>\n<li>\u5207\u6362\u56de\u6765\u3002 \u5982\u679c\u4f60\u53d1\u73b0\u4e0d\u7ba1\u548b\u6837\u90fd\u89e3\u51b3\u4e0d\u4e86&#xff0c;\u8fd8\u662f\u5e72\u8106\u7ed9openwebui\u7528\u6237\u4e5f\u5f04\u4e2asudo\u6743\u9650\u7b97\u4e86&#xff1a;sudo usermod -aG sudo openwebui<\/li>\n<p>\u7136\u540e&#xff0c;\u8981\u7b49\u542f\u52a8\u5b8c\u6210&#xff0c;\u8981\u7b49\u4e00\u4f1a\u513f\u3002\u5982\u679c\u4f60\u7b49\u4e86\u597d\u4e45\u8fd8\u4e0d\u884c&#xff0c;\u4f60\u53ef\u4ee5\u8003\u8651\u7ec8\u7aef\u542f\u52a8\u770b\u770b\u95ee\u9898\u3002\u9996\u5148\u5207\u6362\u5230openwebui\u7528\u6237\u7136\u540e\u8fd0\u884c\u6307\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">su<\/span> openwebui<br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/opt\/openwebui<br \/>\n\/opt\/openwebui\/openwebui-venv\/bin\/open-webui serve &#8211;port <span class=\"token number\">8080<\/span><\/p>\n<p>\u6bd4\u5982\u6709\u53ef\u80fd\u51fa\u73b0\u62a5\u9519&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105755-68023033524f0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u53ef\u4ee5\u628a\u8fd9\u4e2a\u6587\u4ef6\u5939\u7684\u6743\u9650\u6539\u4e0b&#xff1a;sudo chown -R openwebui:openwebui \/opt\/openwebui\/openwebui-venv\/lib\/python3.12\/site-packages\/open_webui\/data\u3010\u6ce8\u610f&#xff0c;\u6bcf\u6b21\u66f4\u65b0\u4e4b\u540e\u5173\u6389\u91cd\u5f00\u53ef\u80fd\u90fd\u8981\u5148\u8bbe\u7f6e\u4e00\u4e0b\u8fd9\u4e2a\u6743\u9650\u3011<\/p>\n<p>\u5982\u679c\u4e00\u76f4\u4e0d\u5bf9&#xff0c;\u53ef\u4ee5\u8fd0\u884cjournalctl -xeu openwebui.service\u68c0\u67e5\u4e00\u4e0b\u3002<\/p>\n<p>\u503c\u5f97\u4e00\u63d0\u7684\u662f&#xff0c;\u5982\u679c\u4f60\u662f\u5728\u7ec8\u7aef\u76f4\u63a5\u542f\u52a8&#xff0c;\u4e5f\u5c31\u662f\u8fd9\u79cd\u6307\u4ee4&#xff1a;\/opt\/openwebui\/openwebui-venv\/bin\/open-webui serve &#8211;port 8080&#xff0c;\u90a3\u4e48\u4ee5\u4e0b\u8fd9\u4e2a\u4e1c\u897f\u51fa\u6765\u4e86\u5e76\u6ca1\u6709\u542f\u52a8\u5b8c\u6210&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105755-68023033a6274.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8981\u7b49\u5f85\u66f4\u591a\u4e1c\u897f\u51fa\u6765\u624d\u662f\u542f\u52a8\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u7ec8\u7aef\u542f\u52a8\u5e76\u4e14\u4f7f\u7528vscode&#xff0c;\u4f60\u4f1a\u770b\u5230\u201c\u7aef\u53e3\u201d\u754c\u9762\u51fa\u73b0\u7aef\u53e3\u6620\u5c04\u60c5\u51b5&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105755-68023033ca7a2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5982\u679c\u4f60\u4e0d\u662f&#xff0c;\u4f60\u53ef\u4ee5\u901a\u8fc7lsof -i:\u7aef\u53e3\u53f7\u6307\u4ee4\u67e5\u770b\u81ea\u5df1\u7684\u7aef\u53e3\u5360\u7528\u60c5\u51b5&#xff0c;\u6ce8\u610f\u4e0d\u8981\u6253\u591a\u4e86\u7a7a\u683c\u3002<\/p>\n<p>\u542f\u52a8\u5b8c\u6210\u540e&#xff0c;\u8bbf\u95eehttp:\/\/your_ip_address:8080&#xff0c;\u5c31\u80fd\u770b\u5230\u4e0b\u9762\u7684Open WebUI\u754c\u9762\u4e86\u3002<\/p>\n<p>\u5982\u679chttp:\/\/127.0.0.1:8080\u80fd\u8bbf\u95ee\u4f46\u662fip&#043;\u7aef\u53e3\u8bbf\u95ee\u4e0d\u4e86&#xff0c;\u4e00\u822c\u90fd\u662f\u9632\u706b\u5899\u6ca1\u5f00\u653e\u5bf9\u5e94\u7aef\u53e3\u5bfc\u81f4\u7684&#xff0c;sudo ufw allow \u7aef\u53e3\u53f7 \u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105755-68023033e3f31.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fdb\u5165\u754c\u9762\u4e4b\u540e\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7\u5bc6\u7801&#xff0c;\u5982\u679c\u63d0\u793a\u6743\u9650\u6709\u95ee\u9898&#xff0c;\u5f88\u53ef\u80fd\u662f\u5173\u952e\u4f9d\u8d56\u6ca1\u6709\u88c5&#xff0c;\u88c5\u597d\u5c31\u884c\u4e86&#xff0c;\u88c5\u597d\u4e4b\u540e\u91cd\u65b0\u521b\u5efa&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> sqlite3 <span class=\"token comment\"># fix sqlite3<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apache2-utils <span class=\"token comment\"># fix htpasswd<\/span><\/p>\n<p>\u8fd9\u6837&#xff0c;Open WebUI\u642d\u5efa\u90e8\u7f72\u5b8c\u6bd5\u3002<\/p>\n<h4>\u4e8c\u3001\u90e8\u7f72API<\/h4>\n<p>\u53c2\u8003&#xff1a;OpenWebUI\u5982\u4f55\u5bf9\u5916\u63d0\u4f9bHTTP\u63a5\u53e3&#xff1f;_openwebui api\u63a5\u53e3-CSDN\u535a\u5ba2 &#x1f517; API Endpoints | Open WebUI<\/p>\n<p>\u7eafWeb\u9875\u9762\u8bbf\u95ee\u5b9e\u5728\u7e41\u7410&#xff0c; \u5de6\u4e0b\u89d2\u70b9\u51fb\u5934\u50cf-\u8bbe\u7f6e&#xff0c;\u7136\u540e\u70b9\u5f00\u8d26\u53f7&#xff0c;\u521b\u5efa\u4e00\u4e2aAPI\u5bc6\u94a5\u5c31\u53ef\u4ee5\u6309API\u5bc6\u94a5\u7684\u65b9\u5f0f\u8bbf\u95ee\u4e86&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105756-68023034961a4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6d4b\u8bd5&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> -X POST http:\/\/\u7f51\u5740:\u7aef\u53e3\/api\/chat\/completions <span class=\"token punctuation\">\\\\<\/span><br \/>\n-H <span class=\"token string\">&#034;Authorization: Bearer sk-\u4f60\u7684\u5bc6\u94a5&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n-H <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n-d <span class=\"token string\">&#039;{<br \/>\n      &#034;model&#034;: &#034;\u4f60\u7684model\u540d\u5b57&#034;,<br \/>\n      &#034;messages&#034;: [<br \/>\n        {<br \/>\n          &#034;role&#034;: &#034;user&#034;,<br \/>\n          &#034;content&#034;: &#034;Why is the sky blue?&#034;<br \/>\n        }<br \/>\n      ]<br \/>\n    }&#039;<\/span><\/p>\n<h4>\u4fee\u590d\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd<\/h4>\n<p>\u574f\u6d88\u606f\u8bf4\u5728\u6700\u524d&#xff1a;\u6211\u8fd8\u6ca1\u89e3\u51b3&#xff01;&#xff01;&#xff01;\u56e0\u4e3a\u6211\u7684openwebui \u7248\u672c\u6709\u70b9\u9ad8&#xff0c;\u6211\u6ca1\u627e\u5230\u6700\u65b0\u7684\u89e3\u51b3\u601d\u8def&#xff0c;\u8fd8\u5728\u81ea\u5df1\u63a2\u7d22&#xff0c;\u4f46\u6211\u611f\u89c9\u6ca1\u4ec0\u4e48\u597d\u63a2\u7d22\u7684\u540e\u671f\u6211\u53ef\u80fd\u4f1a\u8003\u8651\u964d\u7248\u672c\u3002\u4ee5\u4e0b\u662f\u6211\u5728\u7f51\u4e0a\u627e\u5230\u7684\u89e3\u51b3\u601d\u8def&#xff0c;\u6211\u7167\u7740\u5b9e\u65bd\u4e86\u4e00\u904d\u4e5f\u5e76\u6ca1\u6709\u89e3\u51b3\u2026\u2026<\/p>\n<p>\u4e0a\u4f20\u6587\u4ef6\u62a5\u9519&#xff1a;python \u201c\u2018NoneType\u2019 object has no attribute \u2018encode\u2019\u201d&#xff0c;\u8981\u6253\u5f00\u7ba1\u7406\u5458\u9762\u677f\u88c5\u4e2a\u6a21\u578b&#xff0c;\u8be6\u89c1https:\/\/github.com\/open-webui\/open-webui\/discussions\/8059&#xff0c;\u6839\u636e\u6587\u6863\u8ba8\u8bba\u5185\u5bb9&#xff0c;\u603b\u7ed3\u6240\u6709\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u91cd\u7f6e\u5d4c\u5165\u6a21\u578b\u914d\u7f6e<\/p>\n<ul>\n<li>\u8fdb\u5165Admin Panel \u2192 \u627e\u5230Embedding Model\u8bbe\u7f6e<\/li>\n<li>\u624b\u52a8\u8f93\u5165\u9ed8\u8ba4\u6a21\u578b\u540d\u79f0&#xff1a;sentence-transformers\/all-MiniLM-L6-v2<\/li>\n<li>\u70b9\u51fb\u53f3\u4fa7\u5237\u65b0\u6309\u94ae\u5e94\u7528\u914d\u7f6e<\/li>\n<li>\u9002\u7528\u7248\u672c&#xff1a;0.4.7\u53ca\u65e9\u671f\u7248\u672c <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105756-68023034c291c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4ee3\u7801\u5c42\u4fee\u590d<\/p>\n<p> <span class=\"token comment\"># \u5728\/backend\/open_webui\/apps\/retrieval\/main.py\u4e2d\u6dfb\u52a0&#xff1a;<\/span><br \/>\ndefault_embedding_model <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;sentence-transformers\/all-MiniLM-L6-v2&#034;<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token keyword\">not<\/span> app<span class=\"token punctuation\">.<\/span>state<span class=\"token punctuation\">.<\/span>config<span class=\"token punctuation\">.<\/span>RAG_EMBEDDING_MODEL<span class=\"token punctuation\">.<\/span>strip<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    app<span class=\"token punctuation\">.<\/span>state<span class=\"token punctuation\">.<\/span>config<span class=\"token punctuation\">.<\/span>RAG_EMBEDDING_MODEL <span class=\"token operator\">&#061;<\/span> default_embedding_model<br \/>\n    update_embedding_model<span class=\"token punctuation\">(<\/span>default_embedding_model<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u901a\u8fc7\u6dfb\u52a0\u7a7a\u503c\u68c0\u6d4b\u548c\u9ed8\u8ba4\u503c\u56de\u9000\u673a\u5236<\/p>\n<\/li>\n<li>\n<p>\u5207\u6362\u5d4c\u5165\u6a21\u578b\u5f15\u64ce<\/p>\n<ul>\n<li>\u5c06Embedding Engine\u6539\u4e3aollama<\/li>\n<li>\u8bbe\u7f6eAPI\u5730\u5740\u4e3a\u672c\u5730Ollama\u670d\u52a1&#xff08;\u5982http:\/\/127.0.0.1:11434&#xff09;<\/li>\n<li>\u9002\u7528\u7248\u672c&#xff1a;0.5.5&#043;<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u66f4\u6362\u517c\u5bb9\u7684\u5d4c\u5165\u6a21\u578b<\/p>\n<ul>\n<li>\u63a8\u8350\u6a21\u578b&#xff1a;\n<ul>\n<li>BAAI\/bge-m3&#xff08;\u9a8c\u8bc1\u6709\u6548&#xff09;<\/li>\n<li>nomic-ai\/nomic-embed-text-v1.5&#xff08;\u9700\u7f51\u7edc\u7a33\u5b9a&#xff09;<\/li>\n<li>paraphrase-multilingual<\/li>\n<\/ul>\n<\/li>\n<li>\u907f\u514d\u4f7f\u7528\u7a7a\u503c\u6216\u65e0\u6548\u6a21\u578b\u540d\u79f0<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u57fa\u7840\u8bbe\u65bd\u8c03\u6574<\/p>\n<ul>\n<li>Docker\u7528\u6237&#xff1a;\u66f4\u65b0\u81f30.5.10\u7248\u5e76\u901a\u8fc7compose\u90e8\u7f72<\/li>\n<li>\u624b\u52a8\u5b89\u88c5\u7528\u6237&#xff1a;\u68c0\u67e5\u4f9d\u8d56\u5b8c\u6574\u6027<\/li>\n<li>\u786e\u4fdd\u7f51\u7edc\u901a\u7545&#xff08;\u5f71\u54cd\u6a21\u578b\u4e0b\u8f7d&#xff09;<\/li>\n<li>\u91cd\u7f6e\u5411\u91cf\u6570\u636e\u5e93&#xff1a;rm -rf vector_storage\/<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5f00\u53d1\u5206\u652f\u4fee\u590d<\/p>\n<ul>\n<li>\u5c1d\u8bd5\u5408\u5e76\u63d0\u4ea44b7f0c5\u7684\u4fee\u590d<\/li>\n<li>\u6ce8\u610f&#xff1a;dev\u5206\u652f\u53ef\u80fd\u5b58\u5728\u4e0d\u7a33\u5b9a\u6027<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u66ff\u4ee3\u65b9\u6848<\/p>\n<ul>\n<li>\u901a\u8fc7API\u4f7f\u7528\u5916\u90e8\u5d4c\u5165\u670d\u52a1<\/li>\n<li>\u76f4\u63a5\u4f7f\u7528Ollama\u800c\u975eOpenWebUI\u96c6\u6210<\/li>\n<\/ul>\n<\/li>\n<p>\u9644\u52a0\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u51fa\u73b0\u9519\u8bef\u65f6\u68c0\u67e5\u65e5\u5fd7&#xff1a;ERROR[open_webui.routers.retrieval]\u6bb5<\/li>\n<li>\u4f18\u5148\u4f7f\u7528Docker\u90e8\u7f72\u4fdd\u8bc1\u73af\u5883\u4e00\u81f4\u6027<\/li>\n<li>\u9996\u6b21\u914d\u7f6e\u65f6\u5efa\u8bae&#xff1a;<span class=\"token comment\"># \u6e05\u7406\u65e7\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">rm<\/span> -rf ~\/.cache\/openwebui\/models\/<br \/>\n<span class=\"token function\">rm<\/span> -rf vector_storage\/\n <\/li>\n<\/ul>\n<p>\u4e0d\u540c\u7248\u672c\u9002\u7528\u6027&#xff1a;<\/p>\n<ul>\n<li>0.4.x\u7248\u672c&#xff1a;\u65b9\u68481\u30012\u6709\u6548<\/li>\n<li>0.5.x\u7248\u672c&#xff1a;\u65b9\u68483\u30014\u30015\u66f4\u53ef\u9760<\/li>\n<li>0.5.10&#043;\u7248\u672c&#xff1a;\u5efa\u8bae\u4f18\u5148\u4f7f\u7528Docker\u90e8\u7f72<\/li>\n<\/ul>\n<p>\u6ce8&#xff1a;\u82e5\u95ee\u9898\u6301\u7eed&#xff0c;\u5efa\u8bae\u5728Github\u63d0\u4ea4\u5305\u542b\u5b8c\u6574\u9519\u8bef\u65e5\u5fd7\u7684\u65b0issue\u3002<\/p>\n<h4>\u8054\u7f51\u641c\u7d22\u529f\u80fd<\/h4>\n<p>\u53c2\u8003&#xff1a;\u56fd\u5185&#xff0c;\u600e\u4e48\u4f7f\u7528open webui \u7f51\u7edc\u641c\u7d22\u529f\u80fd&#xff0c;\u6709\u5927\u4f6c\u6307\u5bfc\u4e00\u4e0b\u561b&#xff1f; \u00b7 open-webui\/open-webui \u00b7 Discussion #3851 OpenWebUI\u63a5\u5165\u535a\u67e5\u641c\u7d22API &#8211; \u5f00\u53d1\u8c03\u4f18 &#8211; LINUX DO<\/p>\n<p>\u770b\u4e86\u534a\u5929\u6211\u611f\u89c9\u8fd8\u662f\u4e0d\u82b1\u94b1\u597d&#xff0c;\u4e8e\u662f\u60f3\u9009\u62e9 Searxng&#xff0c;\u81ea\u5df1\u642d\u3002<\/p>\n<p>\u4f46\u642d\u633a\u8d39\u4e8b\u7684&#xff0c;\u6211\u73b0\u5728\u8fd8\u6ca1\u5f00\u59cb\u642d&#xff0c;\u4e4b\u540e\u642d\u4e86\u518d\u8865\u535a\u5ba2\u5427\u3002<\/p>\n<p>\u672c\u8d26\u53f7\u6240\u6709\u6587\u7ae0\u5747\u4e3a\u539f\u521b&#xff0c;\u6b22\u8fce\u8f6c\u8f7d&#xff0c;\u8bf7\u6ce8\u660e\u6587\u7ae0\u51fa\u5904&#xff1a;https:\/\/shandianchengzi.blog.csdn.net\/article\/details\/145671009\u3002\u767e\u5ea6\u548c\u5404\u7c7b\u91c7\u96c6\u7ad9\u7686\u4e0d\u53ef\u4fe1&#xff0c;\u641c\u7d22\u8bf7\u8c28\u614e\u9274\u522b\u3002\u6280\u672f\u7c7b\u6587\u7ae0\u4e00\u822c\u90fd\u6709\u65f6\u6548\u6027&#xff0c;\u672c\u4eba\u4e60\u60ef\u4e0d\u5b9a\u671f\u5bf9\u81ea\u5df1\u7684\u535a\u6587\u8fdb\u884c\u4fee\u6b63\u548c\u66f4\u65b0&#xff0c;\u56e0\u6b64\u8bf7\u8bbf\u95ee\u51fa\u5904\u4ee5\u67e5\u770b\u672c\u6587\u7684\u6700\u65b0\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4e00\u4e9b\u7b80\u5355\u7684\u90e8\u7f72\u8fc7\u7a0b\u3002_ubuntu22\u5b89\u88c5deepseek<\/p>\n","protected":false},"author":2,"featured_media":11709,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[128,68,75,43,603,602,305],"topic":[],"class_list":["post-11721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-api","tag-deepseek","tag-llm","tag-43","tag-603","tag-602","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \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\/11721.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4e00\u4e9b\u7b80\u5355\u7684\u90e8\u7f72\u8fc7\u7a0b\u3002_ubuntu22\u5b89\u88c5deepseek\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/11721.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-18T10:57:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105753-68023031bce8c.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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11721.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/11721.html\",\"name\":\"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:57:58+00:00\",\"dateModified\":\"2025-04-18T10:57:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/11721.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/11721.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11721.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f\"}]},{\"@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":"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \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\/11721.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u4e00\u4e9b\u7b80\u5355\u7684\u90e8\u7f72\u8fc7\u7a0b\u3002_ubuntu22\u5b89\u88c5deepseek","og_url":"https:\/\/www.wsisp.com\/helps\/11721.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:57:58+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105753-68023031bce8c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/11721.html","url":"https:\/\/www.wsisp.com\/helps\/11721.html","name":"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:57:58+00:00","dateModified":"2025-04-18T10:57:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/11721.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/11721.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/11721.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u7b14\u8bb0\u3011LLM\uff5cUbuntu22\u670d\u52a1\u5668\u6781\u7b80\u672c\u5730\u90e8\u7f72DeepSeek+\u8054\u7f51\u4f7f\u7528\u65b9\u5f0f"}]},{"@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\/11721","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=11721"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11721\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/11709"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=11721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=11721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=11721"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=11721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}