mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
chore: add 1panel tutorial
This commit is contained in:
@@ -47,6 +47,10 @@ export default defineConfig({
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Docker部署", link: "/zh/deploy/langbot/docker" },
|
||||
{
|
||||
text: "1Panel面板部署",
|
||||
link: "/zh/deploy/langbot/one-click/1panel",
|
||||
},
|
||||
{
|
||||
text: "宝塔面板部署",
|
||||
link: "/zh/deploy/langbot/one-click/bt",
|
||||
@@ -267,6 +271,10 @@ export default defineConfig({
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "Docker Deployment", link: "/en/deploy/langbot/docker" },
|
||||
{
|
||||
text: "1Panel Deployment",
|
||||
link: "/en/deploy/langbot/one-click/1panel",
|
||||
},
|
||||
{
|
||||
text: "aaPanel Deployment",
|
||||
link: "/en/deploy/langbot/one-click/bt",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 585 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 572 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 203 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 327 KiB |
@@ -0,0 +1,63 @@
|
||||
# 1Panel Deployment
|
||||
|
||||
Deploy LangBot with one click using [1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot).
|
||||
|
||||
:::warning
|
||||
|
||||
Unless you plan to use messaging platforms that do not require additional containers (such as Discord or Lark), or you are familiar with the network connection between Docker containers on 1Panel, it is not recommended to use the one-click deployment of 1Panel. Please consider using [Docker Deployment](/en/deploy/langbot/docker) instead.
|
||||
|
||||
:::
|
||||
|
||||
:::info
|
||||
|
||||
With [Alibaba Cloud](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs), you can get a server for as low as 38 yuan per year, and even enjoy a 20% discount. It is more convenient to install 1Panel with one click.
|
||||
|
||||
:::
|
||||
|
||||
## Install 1Panel
|
||||
|
||||
> Recommended server systems (from 1Panel): Debian 12, Ubuntu 22, etc.
|
||||
|
||||
This article assumes that the server has a public IPv4 address by default. If you are using a home machine without a public IP, you can access the relevant pages through the internal network described below.
|
||||
|
||||
Visit [1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot) and use the Linux panel installation script provided officially by 1Panel. Select the corresponding script according to your operating system.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Copy the corresponding script, paste it into the server, and execute it.
|
||||
|
||||
After waiting for a period of time, the installation of 1Panel will be completed.
|
||||
|
||||
Then copy the `External Address` and open it in a browser.
|
||||
|
||||
## Install LangBot
|
||||
|
||||
Open the `App Store`, select the `AI` category, and click to install LangBot.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Check the box for `External Port Access` and click Confirm.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Wait for a moment, and the installation will be completed.
|
||||
|
||||
Click `Containers` on the left side, then select the `Containers` category, and you will see the LangBot container bar.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
Copy the public IP address of the server, for example, `http://xxx.xxx.xxx.xxx:5300` (where xxx.xxx.xxx.xxx is the IP address of the server where 1Panel is located, and 5300 is the port number).
|
||||
|
||||
Open the address, enter the administrator email and password, then click Initialize.
|
||||
|
||||
After that, you can configure LangBot in the visual interface.
|
||||
|
||||
Next, please continue to read the [Deploy Messaging Platforms](/en/deploy/platforms/readme) page.
|
||||
@@ -0,0 +1,55 @@
|
||||
# 1Panel部署
|
||||
|
||||
使用[1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot)一键部署 LangBot。
|
||||
|
||||
:::warning
|
||||
|
||||
除非您打算使用 Discord、飞书等无需额外容器的消息平台,或您熟悉1Panel上 Docker 容器间的网络连接,否则不建议使用1Panel一键部署,请考虑使用[Docker部署](/zh/deploy/langbot/docker)。
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
:::info
|
||||
使用[阿里云,服务器价格低至 38 元一年,更可以享受8折优惠](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs),一键安装1Panel更方便
|
||||
:::
|
||||
|
||||
## 安装1Panel
|
||||
|
||||
> 服务器系统推荐(来自1Panel):Debian 12,Ubuntu 22等
|
||||
>
|
||||
> 本文默认所述的是拥有公网IPv4地址的服务器,如果是家用机器没有公网 IP,可以通过下文中的内网来访问相关页面
|
||||
|
||||
打开[1Panel](https://www.bt.cn/new/download.html?r=dk_LangBot),使用1Panel官方提供的Linux面板安装脚本,根据自己使用的系统选择对应的脚本
|
||||
|
||||

|
||||
|
||||
复制对应脚本,粘贴到服务器执行。
|
||||
|
||||
等待一段时间后,1Panel安装完成
|
||||
|
||||
然后将`外部地址`复制到浏览器打开。
|
||||
|
||||
## 安装LangBot
|
||||
|
||||
打开`应用商店`,选择`AI`类别,点击安装 LangBot
|
||||
|
||||

|
||||
|
||||
勾选`端口外部访问`,点击确认即可
|
||||
|
||||

|
||||
|
||||
稍等片刻,安装完成
|
||||
|
||||
点击左侧`容器`,选择`容器`类目,即可看到 LangBot 容器栏
|
||||
|
||||

|
||||
|
||||
复制服务器公网地址,例如`http://xxx.xxx.xxx.xxx:5300`(xxx.xxx.xxx.xxx为1Panel 明白所在服务器的 IP,5300为端口号)
|
||||
|
||||
打开后输入管理员邮箱和密码,然后点击初始化。
|
||||
|
||||
然后就可以在可视化界面进行配置了。
|
||||
|
||||
接下来请继续阅读[部署消息平台](/zh/deploy/platforms/readme)页。
|
||||
Reference in New Issue
Block a user