mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-18 13:17:50 +00:00
1 line
7.2 KiB
JavaScript
1 line
7.2 KiB
JavaScript
|
|
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4448],{2642:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"deploy/jar","title":"JAR Package Deployment","description":"- Operating System: Ubuntu 20.04 LTS","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/deploy/jar.md","sourceDirName":"deploy","slug":"/deploy/jar","permalink":"/docs/docs/deploy/jar","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/jar.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_label":"JAR","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Docker","permalink":"/docs/docs/deploy/docker"},"next":{"title":"Cluster","permalink":"/docs/docs/deploy/cluster"}}');var d=s(5723),i=s(6246);const a={sidebar_label:"JAR",sidebar_position:3},o="JAR Package Deployment",t={},l=[{value:"Dependencies",id:"dependencies",level:2},{value:"Download",id:"download",level:2},{value:"MySQL 8.0",id:"mysql-80",level:3},{value:"Or PostgreSQL 16",id:"or-postgresql-16",level:3},{value:"Redis",id:"redis",level:3},{value:"Nginx",id:"nginx",level:2},{value:"AI",id:"ai",level:2},{value:"Download IM Server",id:"download-im-server",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Local Preview",id:"local-preview",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,i.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.header,{children:(0,d.jsx)(n.h1,{id:"jar-package-deployment",children:"JAR Package Deployment"})}),"\n",(0,d.jsx)(n.admonition,{type:"tip",children:(0,d.jsxs)(n.ul,{children:["\n",(0,d.jsx)(n.li,{children:"Operating System: Ubuntu 20.04 LTS"}),"\n",(0,d.jsx)(n.li,{children:"Server Requirements: Minimum 2 cores 4GB RAM, Recommended 4 cores 8GB RAM"}),"\n"]})}),"\n",(0,d.jsx)(n.h2,{id:"dependencies",children:"Dependencies"}),"\n",(0,d.jsxs)(n.ul,{children:["\n",(0,d.jsx)(n.li,{children:(0,d.jsx)(n.a,{href:"/docs/deploy/depend/jdk",children:"JDK"})}),"\n",(0,d.jsxs)(n.li,{children:[(0,d.jsx)(n.a,{href:"/docs/deploy/depend/mysql",children:"MySQL"})," or ",(0,d.jsx)(n.a,{href:"/docs/deploy/depend/postgresql",children:"PostgreSQL"})]}),"\n",(0,d.jsx)(n.li,{children:(0,d.jsx)(n.a,{href:"/docs/deploy/depend/redis",children:"Redis"})}),"\n",(0,d.jsx)(n.li,{children:(0,d.jsx)(n.a,{href:"/docs/deploy/depend/nginx",children:"Nginx"})}),"\n",(0,d.jsx)(n.li,{children:(0,d.jsx)(n.a,{href:"/docs/deploy/depend/letsencrypt",children:"Let's Encrypt"})}),"\n"]}),"\n",(0,d.jsx)(n.h2,{id:"download",children:"Download"}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-bash",children:"# Download JAR package\nwget https://github.com/bytedesk/bytedesk/releases/download/v1.0.0/bytedesk.jar\njava --version\n# java 17.0.4 2022-07-19 LTS\n"})}),"\n",(0,d.jsx)(n.h3,{id:"mysql-80",children:(0,d.jsx)(n.a,{href:"./depend/mysql",children:"MySQL 8.0"})}),"\n",(0,d.jsx)(n.p,{children:"MySQL is used by default"}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-bash",children:"# Modify application.properties\nspring.datasource.url=jdbc:mysql://127.0.0.1:3306/bytedesk\nspring.datasource.username=root\nspring.datasource.password=password\n"})}),"\n",(0,d.jsxs)(n.h3,{id:"or-postgresql-16",children:["Or ",(0,d.jsx)(n.a,{href:"./depend/postgresql",children:"PostgreSQL 16"})]}),"\n",(0,d.jsx)(n.p,{children:"Choose either MySQL or PostgreSQL, MySQL is used by default"}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-bash",children:"# Modify application.properties\nspring.datasource.url=jdbc:postgresql://127.0.0.1:5433/bytedesk\nspring.datasource.username=postgres\nspring.datasource.password=password\n"})}),"\n",(0,d.jsx)(n.h3,{id:"redis",children:(0,d.jsx)(n.a,{href:"./depend/redis",children:"Redis"})}),"\n",(0,d.jsx)(n.pre,{children:(0,d.jsx)(n.code,{className:"language-bash",children:"spring.data.
|