app/assets/install.html-BKS-o9UR.js

2 lines
6.1 KiB
JavaScript
Raw Normal View History

import{_ as i,r as l,o as c,c as a,b as e,d as t,a as n,e as r}from"./app-CaCnUB7w.js";const s={},d=e("h2",{id:"开始安装",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#开始安装"},[e("span",null,[e("strong",null,"开始安装")])])],-1),p=e("h3",{id:"常规方法",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#常规方法"},[e("span",null,[e("strong",null,"常规方法")])])],-1),h={href:"https://git-scm.com/download/",target:"_blank",rel:"noopener noreferrer"},u=e("code",null,"Git",-1),m={href:"https://www.python.org/downloads/release/python-31010/",target:"_blank",rel:"noopener noreferrer"},y=e("code",null,"Python3.10+",-1),_=e("li",null,[t("克隆项目 "),e("code",null,"git clone https://github.com/snowykami/LiteyukiBot")],-1),k=e("li",null,[t("进入轻雪目录 "),e("code",null,"cd LiteyukiBot")],-1),g=e("li",null,[t("安装依赖 "),e("code",null,"pip install -r requirements.txt")],-1),v=e("li",null,[t("启动 "),e("code",null,"python main.py")],-1),f=e("h3",{id:"使用docker-测试中",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#使用docker-测试中"},[e("span",null,[e("strong",null,"使用Docker(测试中)")])])],-1),w={href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},b=e("code",null,"Docker",-1),x=e("li",null,[t("克隆项目 "),e("code",null,"git clone https://github.com/snowykami/LiteyukiBot")],-1),B=e("li",null,[t("进入轻雪目录 "),e("code",null,"cd LiteyukiBot")],-1),L=e("li",null,[t("构建镜像 "),e("code",null,"docker build -t liteyukibot .")],-1),P=e("li",null,[t("启动容器 "),e("code",null,"docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot")],-1),D=r('<div class="hint-container tip"><p class="hint-container-title">提示</p><p>Windows请使用项目绝对目录<code>/path/to/LiteyukiBot</code>代替<code>$(pwd)</code> <br> 若你修改了端口号请将<code>20216:20216</code>中的<code>20216</code>替换为你的端口号</p></div><h2 id="设备要求" tabindex="-1"><a class="header-anchor" href="#设备要求"><span><strong>设备要求</strong></span></a></h2><ul><li>Windows系统版本最低<code>Windows10+</code>/<code>Windows Server 2019+</code></li><li>Linux系统要支持Python3.10+,推荐<code>Ubuntu 20.04+</code>(<s>别用你那b CentOS</s>)</li><li>CPU: 至少<code>1vCPU</code></li><li>内存: Bot无其他插件会占用<code>200~300MB</code>,其他插件占用视具体插件而定,建议<code>1GB</code>以上</li><li>硬盘: 至少<code>1GB</code>空间</li></ul><div class="hint-container warning"><p class="hint-container-title">注意</p><p>如果设备上有多个环境,请使用<code>path/to/python -m pip install -r requirements.txt</code>来安装依赖,<code>path/to/python</code>为你的Python可执行文件路径</p></div><div class="hint-container tip"><p class="hint-container-title">提示</p><p>推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用<code>python -m venv venv</code>来创建虚拟环境,然后使用<code>venv\\Scripts\\activate</code>来激活虚拟环境</p></div><div class="hint-container warning"><p class="hint-container-title">注意</p><p>轻雪的更新功能依赖Git如果你没有安装Git你将无法使用更新功能</p></div><h4 id="其他问题请移步至答疑" tabindex="-1"><a class="header-anchor" href="#其他问题请移步至答疑"><span>其他问题请移步至<a href="/deployment/fandq">答疑</a></span></a></h4>',7);function G(N,T){const o=l("ExternalLinkIcon");return c(),a("div",null,[d,p,e("ol",null,[e("li",null,[t("安装 "),e("a",h,[u,n(o)]),t(" 和 "),e("a",m,[y,n(o)]),t(" 环境")]),_,k,g,v]),f,e("ol",null,[e("li",null,[t("安装 "),e("a",w,[b,n(o)])]),x,B,L,P]),D])}const q=i(s,[["render",G],["__file","install.html.vue"]]),S=JSON.parse('{"path":"/deployment/install.html","title":"安装","lang":"zh-CN","frontmatter":{"title":"安装","icon":"download","order":1,"category":"使用指南","tag":["安装"],"description":"开始安装 常规方法 安装 Git Python3.10+ 环境 <EFBFBD>