mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 11:18:02 +00:00
1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9655],{8404:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>p,frontMatter:()=>i,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"deploy/source","title":"\u6e90\u7801\u90e8\u7f72","description":"- \u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 20.04 LTS","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/deploy/source.md","sourceDirName":"deploy","slug":"/deploy/source","permalink":"/bytedesk/zh-CN/docs/deploy/source","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/source.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_label":"\u6e90\u7801\u90e8\u7f72","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Uniapp","permalink":"/bytedesk/zh-CN/docs/develop/visitor/platform/uniapp"},"next":{"title":"Docker\u90e8\u7f72","permalink":"/bytedesk/zh-CN/docs/deploy/docker"}}');var t=s(5723),d=s(6246);const i={sidebar_label:"\u6e90\u7801\u90e8\u7f72",sidebar_position:2},a="\u6e90\u7801\u90e8\u7f72",o={},l=[{value:"\u524d\u671f\u51c6\u5907",id:"\u524d\u671f\u51c6\u5907",level:2},{value:"Jdk17",id:"jdk17",level:3},{value:"MySQL 8",id:"mysql-8",level:3},{value:"\u6216 PostgreSQL 16",id:"\u6216-postgresql-16",level:3},{value:"Redis",id:"redis",level:3},{value:"\u4e0b\u8f7d\u6e90\u7801\uff0c\u5e76\u7f16\u8bd1",id:"\u4e0b\u8f7d\u6e90\u7801\u5e76\u7f16\u8bd1",level:2},{value:"\u672c\u5730\u9884\u89c8",id:"\u672c\u5730\u9884\u89c8",level:2}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,d.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"\u6e90\u7801\u90e8\u7f72",children:"\u6e90\u7801\u90e8\u7f72"})}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 20.04 LTS"}),"\n",(0,t.jsx)(n.li,{children:"\u670d\u52a1\u5668\u6700\u4f4e\u914d\u7f6e2\u68384G\u5185\u5b58\uff0c\u63a8\u8350\u914d\u7f6e4\u68388G\u5185\u5b58"}),"\n"]})}),"\n",(0,t.jsx)(n.h2,{id:"\u524d\u671f\u51c6\u5907",children:"\u524d\u671f\u51c6\u5907"}),"\n",(0,t.jsx)(n.h3,{id:"jdk17",children:(0,t.jsx)(n.a,{href:"./depend/jdk",children:"Jdk17"})}),"\n",(0,t.jsx)(n.p,{children:"\u56e0\u9879\u76ee\u4f9d\u8d56spring boot 3, \u6700\u4f4e\u8981\u6c42 jdk17, \u8bf7\u786e\u4fdd\u5df2\u5b89\u88c5"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"java --version\n# java 17.0.4 2022-07-19 LTS\n"})}),"\n",(0,t.jsx)(n.h3,{id:"mysql-8",children:(0,t.jsx)(n.a,{href:"./depend/mysql",children:"MySQL 8"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"# \u4fee\u6539application.properties\nspring.datasource.url=jdbc:mysql://127.0.0.1:3306/bytedesk_im\nspring.datasource.username=root\nspring.datasource.password=\u5bc6\u7801\n"})}),"\n",(0,t.jsxs)(n.h3,{id:"\u6216-postgresql-16",children:["\u6216 ",(0,t.jsx)(n.a,{href:"./depend/postgresql",children:"PostgreSQL 16"})]}),"\n",(0,t.jsx)(n.p,{children:"mysql\u6216postgresql\u4efb\u9009\u5176\u4e00, \u9ed8\u8ba4\u4f7f\u7528mysql"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"# \u4fee\u6539application.properties\nspring.datasource.url=jdbc:postgresql://127.0.0.1:5433/bytedesk_im\nspring.datasource.username=postgres\nspring.datasource.password=\u5bc6\u7801\n"})}),"\n",(0,t.jsx)(n.h3,{id:"redis",children:(0,t.jsx)(n.a,{href:"./depend/redis",children:"Redis"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"spring.data.redis.database=0\nspring.data.redis.host=127.0.0.1\nspring.data.redis.port=6379\nspring.data.redis.password=\u5bc6\u7801\n"})}),"\n",(0,t.jsxs)(n.h2,{id:"\u4e0b\u8f7d\u6e90\u7801\u5e76\u7f16\u8bd1",children:[(0,t.jsx)(n.a,{href:"https://github.com/Bytedesk/bytedesk",children:"\u4e0b\u8f7d\u6e90\u7801"}),"\uff0c\u5e76\u7f16\u8bd1"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'# \u6ce8\u610f: \u6b64\u5f00\u6e90\u7248\u672c\u5904\u4e8e\u65e9\u671f\u9636\u6bb5\uff0c\u8bb8\u591a\u529f\u80fd\u5c1a\u672a\u5b8c\u5584\u6216\u6d4b\u8bd5\u672a\u5b8c\u6210\uff0c\u6587\u6863\u5c1a\u5f85\u5b8c\u5584\uff0c\u8bf7\u52ff\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528\ngit clone https://github.com/bytedesk/bytedesk.git\n# \u914d\u7f6e\u6587\u4ef6: bytedesk/starter/src/main/resources/application-dev.properties\n# \u63a8\u8350\u5f00\u53d1\u73af\u5883\uff1avscode + maven\n#\n# java --version\n# java 17.0.4 2022-07-19 LTS\n# \n# mvn --version\n# Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)\n# OS name: "mac os x", version: "14.2.1", arch: "aarch64", family: "mac"\n# \n# \u9879\u76ee\u4f7f\u7528\u4e86protobuf\uff0c\u53ef\u80fd\u9700\u8981\u5b89\u88c5 protobuf \u7f16\u8bd1\u5de5\u5177\n# protoc --version\n# libprotoc 25.3\n# \ncd bytedesk\nmvn install -Dmaven.test.skip=true\n# \ncd starter\nmvn spring-boot:run\n'})}),"\n",(0,t.jsx)(n.h2,{id:"\u672c\u5730\u9884\u89c8",children:"\u672c\u5730\u9884\u89c8"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"web: http://127.0.0.1:9003/\n\u5f00\u53d1\u8005\u5165\u53e3: http://127.0.0.1:9003/dev\n\u7ba1\u7406\u540e\u53f0: http://127.0.0.1:9003/admin, \u7528\u6237\u540d: admin@email.com, \u5bc6\u7801: admin\n\u5ba2\u6237\u7aef: http://127.0.0.1:9003/agent/chat, \u7528\u6237\u540d: admin@email.com, \u5bc6\u7801: admin\n\u8bbf\u5ba2\u7aef: http://127.0.0.1:9003/chat?org=df_org_uid&t=0&sid=df_ag_uid&\napi\u6587\u6863: http://127.0.0.1:9003/swagger-ui/index.html\n\u6570\u636e\u5e93\u76d1\u63a7: http://127.0.0.1:9003/druid\uff0c\u7528\u6237\u540d: admin@email.com, \u5bc6\u7801: admin\nactuator: http://127.0.0.1:9003/actuator\n"})})]})}function p(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},6246:(e,n,s)=>{s.d(n,{R:()=>i,x:()=>a});var r=s(2155);const t={},d=r.createContext(t);function i(e){const n=r.useContext(d);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),r.createElement(d.Provider,{value:n},e.children)}}}]); |