mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-20 06:07:53 +00:00
1 line
9.4 KiB
JavaScript
1 line
9.4 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3805],{1399:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota-ollama-3053c4abff46897a4e1caf3d8830ccac.png"},2706:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota_5-b351725d0f51c99903d5ef1a80ed1ba6.png"},3254:(e,n,l)=>{l.r(n),l.d(n,{assets:()=>o,contentTitle:()=>t,default:()=>h,frontMatter:()=>d,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"deploy/baota","title":"\u5b9d\u5854\u9762\u677f\u90e8\u7f72","description":"- \u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 24.04 LTS","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/deploy/baota.md","sourceDirName":"deploy","slug":"/deploy/baota","permalink":"/docs/zh-CN/docs/deploy/baota","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/baota.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"\u5b9d\u5854\u9762\u677f\u90e8\u7f72","sidebar_label":"\u5b9d\u5854\u9762\u677f\u90e8\u7f72","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"\u6e90\u7801\u90e8\u7f72","permalink":"/docs/zh-CN/docs/deploy/source"},"next":{"title":"Docker\u90e8\u7f72","permalink":"/docs/zh-CN/docs/deploy/docker"}}');var i=l(5723),a=l(6246);const d={title:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",sidebar_label:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",sidebar_position:3},t=void 0,o={},c=[{value:"\u6b65\u9aa4\u4e00",id:"\u6b65\u9aa4\u4e00",level:2},{value:"\u6b65\u9aa4\u4e8c\uff1a\u6dfb\u52a0\u5bb9\u5668\u7f16\u6392",id:"\u6b65\u9aa4\u4e8c\u6dfb\u52a0\u5bb9\u5668\u7f16\u6392",level:2},{value:"\u590d\u5236\u5982\u4e0b\u7f16\u6392\u5185\u5bb9(\u4e8c\u9009\u4e00)",id:"\u590d\u5236\u5982\u4e0b\u7f16\u6392\u5185\u5bb9\u4e8c\u9009\u4e00",level:3},{value:"\u6b65\u9aa4\u4e09\uff1a\u7b49\u5f85\u4e2d",id:"\u6b65\u9aa4\u4e09\u7b49\u5f85\u4e2d",level:2},{value:"\u6b65\u9aa4\u56db\uff1a\u6dfb\u52a0\u5b8c\u6210\uff0c\u5173\u95ed\u7a97\u53e3",id:"\u6b65\u9aa4\u56db\u6dfb\u52a0\u5b8c\u6210\u5173\u95ed\u7a97\u53e3",level:2},{value:"\u6b65\u9aa4\u4e94\uff1a\u5b89\u88c5\u6210\u529f",id:"\u6b65\u9aa4\u4e94\u5b89\u88c5\u6210\u529f",level:2},{value:"\u6b65\u9aa4\u516d\uff1a\u5b89\u88c5ollama\u6a21\u578b",id:"\u6b65\u9aa4\u516d\u5b89\u88c5ollama\u6a21\u578b",level:2},{value:"\u6b65\u9aa4\u4e03\uff1a\u5f00\u653e\u7aef\u53e3",id:"\u6b65\u9aa4\u4e03\u5f00\u653e\u7aef\u53e3",level:2},{value:"\u6b65\u9aa4\u516b\uff1a\u9884\u89c8",id:"\u6b65\u9aa4\u516b\u9884\u89c8",level:2},{value:"\u6b65\u9aa4\u4e5d\uff1a\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",id:"\u6b65\u9aa4\u4e5d\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",level:2},{value:"\u5e38\u89c1\u95ee\u9898",id:"\u5e38\u89c1\u95ee\u9898",level:2}];function r(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.admonition,{type:"tip",children:(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 24.04 LTS"}),"\n",(0,i.jsx)(n.li,{children:"\u670d\u52a1\u5668\u6700\u4f4e\u914d\u7f6e8\u683816G\u5185\u5b58"}),"\n"]})}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e00",children:"\u6b65\u9aa4\u4e00"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"agent",src:l(3590).A+"",width:"2732",height:"740"})}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e8c\u6dfb\u52a0\u5bb9\u5668\u7f16\u6392",children:"\u6b65\u9aa4\u4e8c\uff1a\u6dfb\u52a0\u5bb9\u5668\u7f16\u6392"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"agent",src:l(5213).A+"",width:"2510",height:"1570"})}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"\u590d\u5236\u5982\u4e0b\u7f16\u6392\u5185\u5bb9\u4e8c\u9009\u4e00",children:"\u590d\u5236\u5982\u4e0b\u7f16\u6392\u5185\u5bb9(\u4e8c\u9009\u4e00)"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://gitee.com/270580156/weiyu/blob/main/deploy/docker/docker-compose.yaml",children:"\u6700\u65b0docker-compose.yaml-\u9700\u8981\u81ea\u884c\u5b89\u88c5ollama"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://gitee.com/270580156/weiyu/blob/main/deploy/docker/docker-compose-ollama.yaml",children:"\u6700\u65b0docker-compose-ollama.yaml-\u9ed8\u8ba4\u96c6\u6210ollama"})}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"\u5982\u679c\u4f7f\u7528docker-compose.yaml-\u9700\u8981\u81ea\u884c\u5b89\u88c5ollama\uff0c\u5e76\u4fee\u6539ollama\u670d\u52a1\u5668\u5730\u5740\uff0c\u53c2\u8003\u5982\u4e0b\u914d\u7f6e\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:"# \u4fee\u6539ollama\u670d\u52a1\u5668\u5730\u5740\nSPRING_AI_OLLAMA_BASE_URL: http://host.docker.internal:11434\n# \u542f\u7528ollama\u804a\u5929\u529f\u80fd\uff0c\u5e76\u8bbe\u7f6e\u6a21\u578b\u548c\u6e29\u5ea6\u53c2\u6570\nSPRING_AI_OLLAMA_CHAT_ENABLED: true\nSPRING_AI_OLLAMA_CHAT_OPTIONS_MODEL: qwen3:0.6b\nSPRING_AI_OLLAMA_CHAT_OPTIONS_TEMPERATURE: 0.7\n# \u542f\u7528ollama embedding\u529f\u80fd\uff0c\u5e76\u8bbe\u7f6e\u6a21\u578b\nSPRING_AI_OLLAMA_EMBEDDING_ENABLED: true\nSPRING_AI_OLLAMA_EMBEDDING_OPTIONS_MODEL: bge-m3:latest\n"})}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e09\u7b49\u5f85\u4e2d",children:"\u6b65\u9aa4\u4e09\uff1a\u7b49\u5f85\u4e2d"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"agent",src:l(5268).A+"",width:"1920",height:"1350"})}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u56db\u6dfb\u52a0\u5b8c\u6210\u5173\u95ed\u7a97\u53e3",children:"\u6b65\u9aa4\u56db\uff1a\u6dfb\u52a0\u5b8c\u6210\uff0c\u5173\u95ed\u7a97\u53e3"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"agent",src:l(6923).A+"",width:"1632",height:"1016"})}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e94\u5b89\u88c5\u6210\u529f",children:"\u6b65\u9aa4\u4e94\uff1a\u5b89\u88c5\u6210\u529f"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"agent",src:l(2706).A+"",width:"2732",height:"1526"})}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u516d\u5b89\u88c5ollama\u6a21\u578b",children:"\u6b65\u9aa4\u516d\uff1a\u5b89\u88c5ollama\u6a21\u578b"}),"\n",(0,i.jsx)(n.p,{children:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama qwen2.5:1.5b\u6a21\u578b\uff0c\u6240\u4ee5\u9700\u8981\u62c9\u53d6\u6a21\u578b\uff0c\u5426\u5219\u65e0\u6cd5\u4f7f\u7528AI\u95ee\u7b54\u529f\u80fd"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"# \u5bf9\u8bdd\u6a21\u578b\nollama pull qwen3:0.6b\n# \u5d4c\u5165\u6a21\u578b\nollama pull bge-m3:latest\n"})}),"\n",(0,i.jsx)(n.p,{children:"\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fdocker-compose-ollama.yaml-\u9ed8\u8ba4\u96c6\u6210ollama\uff0c\u53c2\u8003\u4e0b\u56fe\u5b89\u88c5\u6a21\u578b"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.img,{alt:"ollama",src:l(1399).A+"",width:"3028",height:"1500"})}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e03\u5f00\u653e\u7aef\u53e3",children:"\u6b65\u9aa4\u4e03\uff1a\u5f00\u653e\u7aef\u53e3"}),"\n",(0,i.jsx)(n.p,{children:"\u8bf7\u5f00\u653e\u5185\u7f51\u5165\u65b9\u5411\u7aef\u53e3"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"9003"}),"\n",(0,i.jsx)(n.li,{children:"9885"}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u516b\u9884\u89c8",children:"\u6b65\u9aa4\u516b\uff1a\u9884\u89c8"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"# \u8bf7\u5c06127.0.0.1\u66ff\u6362\u4e3a\u4f60\u7684\u670d\u52a1\u5668ip\nhttp://127.0.0.1:9003/\n"})}),"\n",(0,i.jsx)(n.h2,{id:"\u6b65\u9aa4\u4e5d\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",children:"\u6b65\u9aa4\u4e5d\uff1a\u914d\u7f6e\u57df\u540d\u8bbf\u95ee"}),"\n",(0,i.jsx)(n.p,{children:"\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5efa\u8bae\u914d\u7f6e\u57df\u540d\u8bbf\u95ee\u548cHTTPS\uff1a"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u5b89\u88c5\u914d\u7f6eNginx"}),"\uff1a\u53c2\u8003",(0,i.jsx)(n.a,{href:"/docs/zh-CN/docs/deploy/depend/nginx",children:"Nginx\u914d\u7f6e\u6307\u5357"})]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u914d\u7f6eSSL\u8bc1\u4e66"}),"\uff1a\u5efa\u8bae\u4f7f\u7528",(0,i.jsx)(n.a,{href:"/docs/zh-CN/docs/deploy/depend/letsencrypt",children:"Let's Encrypt"}),"\u514d\u8d39\u8bc1\u4e66"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u5e38\u89c1\u95ee\u9898",children:"\u5e38\u89c1\u95ee\u9898"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\u53c2\u8003 ",(0,i.jsx)(n.a,{href:"/docs/faq",children:"\u5e38\u89c1\u95ee\u9898"})]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(r,{...e})}):r(e)}},3590:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota_1-99277315937c8b14a56612128c5a950c.png"},5213:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota_2-b75e6306bcd49f554bbaefb83a07a38b.png"},5268:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota_3-cfb62370b7d363952b014530774990c2.png"},6246:(e,n,l)=>{l.d(n,{R:()=>d,x:()=>t});var s=l(2155);const i={},a=s.createContext(i);function d(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),s.createElement(a.Provider,{value:n},e.children)}},6923:(e,n,l)=>{l.d(n,{A:()=>s});const s=l.p+"assets/images/baota_4-f0e9afa41b112e6a906d9a0f36559397.png"}}]); |