import{_ as s,r as a,o as l,c,b as e,d as t,a as o,e as i}from"./app-Dq2hGnN2.js";const r={},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"},v=e("code",null,"Python3.10+",-1),_=i(`
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
cd LiteyukiBot
pip install -r requirements.txt
python main.py
提示
推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv
来创建虚拟环境,然后使用.venv\\Scripts\\activate
来激活虚拟环境(Linux下使用source .venv/bin/activate
激活)
`,3),k={href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer"},y=e("code",null,"Docker",-1),g=e("li",null,[t("克隆项目 "),e("code",null,"git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1")],-1),b=e("li",null,[t("进入轻雪目录 "),e("code",null,"cd LiteyukiBot")],-1),f=e("li",null,[t("构建镜像 "),e("code",null,"docker build -t liteyukibot .")],-1),S=e("li",null,[t("启动容器 "),e("code",null,"docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot")],-1),x=i('提示
Windows请使用项目绝对目录/path/to/LiteyukiBot
代替$(pwd)
若你修改了端口号请将20216:20216
中的20216
替换为你的端口号
',2),w={href:"https://timerainstarsky.github.io/TRSS_Liteyuki/",target:"_blank",rel:"noopener noreferrer"},L=e("code",null,"Arch Linux",-1),B=i('- Windows系统版本最低
Windows10+
/Windows Server 2019+
- Linux系统要支持Python3.10+,推荐
Ubuntu 20.04+
(别用你那b CentOS) - CPU: 至少
1vCPU
- 内存: Bot无其他插件会占用
300~500MB
,包括chromium
及 node
等进程,其他插件占用视具体插件而定,建议1GB
以上 - 硬盘: 至少
1GB
空间
注意
如果设备上有多个环境,请使用path/to/python -m pip install -r requirements.txt
来安装依赖,path/to/python
为你的Python可执行文件路径
注意
轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能
',5);function T(G,P){const n=a("ExternalLinkIcon");return l(),c("div",null,[d,p,e("ol",null,[e("li",null,[t("安装 "),e("a",h,[u,o(n)]),t(" 和 "),e("a",m,[v,o(n)]),t(" 环境")])]),_,e("ol",null,[e("li",null,[t("安装 "),e("a",k,[y,o(n)])]),g,b,f,S]),x,e("p",null,[e("a",w,[t("TRSS_Liteyuki轻雪机器人管理脚本"),o(n)]),t(",该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用"),L]),B])}const N=s(r,[["render",T],["__file","install.html.vue"]]),C=JSON.parse('{"path":"/deploy/install.html","title":"安装","lang":"zh-CN","frontmatter":{"title":"安装","icon":"download","order":1,"category":"使用指南","tag":["安装"],"description":"开始安装 常规部署 安装 Git 和 Python3.10+ 环境 提示 推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\\\\Scripts\\\\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活) 使用Docker构建镜像部署...","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/deploy/install.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/deploy/install.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"安装"}],["meta",{"property":"og:description","content":"开始安装 常规部署 安装 Git 和 Python3.10+ 环境 提示 推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\\\\Scripts\\\\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活) 使用Docker构建镜像部署..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2024-08-16T18:24:25.000Z"}],["meta",{"property":"article:tag","content":"安装"}],["meta",{"property":"article:modified_time","content":"2024-08-16T18:24:25.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"安装\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-16T18:24:25.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":2,"title":"开始安装","slug":"开始安装","link":"#开始安装","children":[{"level":3,"title":"常规部署","slug":"常规部署","link":"#常规部署","children":[]},{"level":3,"title":"使用Docker构建镜像部署","slug":"使用docker构建镜像部署","link":"#使用docker构建镜像部署","children":[]},{"level":3,"title":"使用TRSS Scripts部署","slug":"使用trss-scripts部署","link":"#使用trss-scripts部署","children":[]}]},{"level":2,"title":"设备要求","slug":"设备要求","link":"#设备要求","children":[]}],"git":{"createdTime":1723832665000,"updatedTime":1723832665000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":1.55,"words":465},"filePathRelative":"deploy/install.md","localizedDate":"2024年8月16日","autoDesc":true}');export{N as comp,C as data};