Files
mdt-docs/slides/pages/002-install.md
2025-12-03 00:22:00 +08:00

145 lines
4.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: cover
background: https://cdn.jsdelivr.net/gh/slidevjs/slidev-covers@main/static/v_PEqKbJM0s.webp
---
# 开源多维表格部署
本节内容包括:开源多维表格的安装和部署。
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
routeAlias: md-deploy-step
---
# 部署步骤
简单介绍一些这个程序的优点,他是单文件可独立运行的软件,不需要任何复杂的环境配置。名字叫 [nocodb](https://github.com/nocodb/nocodb/releases)GitHub可以搜到。
整个步骤只有
1. [下载程序](/md-local-step-1)
2. [运行程序](/md-local-step-2)
3. [访问网页](/md-local-step-3)
<br />
<go-back go="md-docker-deploy" >
docker 部署更简单。
</go-back>
**推荐服务器部署**
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
---
# 部署后访问
- 访问地址:`http://你的服务器IP:8080`
- 首次进入会提示创建管理员账号
- 创建完成后,登录后台,创建第一个项目
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
---
# 推荐部署地方
建议程序运行到公网,本地联动性很差。部署到公网服务器上,方便随时随地访问和管理数据。如果运行到云端,这里介绍部署到云端的成本。
- 这个程序的资源推荐配置是 2H4G 的服务器10M以上的宽带才算访问的比较流畅。
- 单个运行的服务可以供1-10人使用纯个人来说
- 隔离角度上来说,只有管理员能看到所有的数据,普通用户只能看到分配给自己的数据
<!--
如果运行在本地,建议内网穿透到公网。
-->
<br />
> 1. 非服务器缺点, 运维角度, 网络访问角度
> 2. 服务器缺点,隐形方面,域名成本, 备案,宽带,服务器学习和管理成本
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
---
# 部署服务器成本
国内云服务器阿里云腾讯云火山云都行新用户都有优惠活动大概一年显性成本在100元以内官网上找就行。
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
routeAlias: md-local-step-1
---
# <go-back go="md-deploy-step" /> 步骤1 下载程序
下载地址GitHub可以搜, `nocodb/nocodb` ,选择最新的版本,下载对应系统的压缩包。
- Windows 系统下载 `Noco-win-arm64.exe`
- Linux 系统下载 `Noco-linux-x64`
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
routeAlias: md-local-step-2
---
# <go-back go="md-deploy-step" /> 步骤2 运行程序
在命令行中进入下载了程序的目录,运行以下命令:
```bash
# Linux 系统
chmod +x Noco-linux-x64
./Noco-linux-x64
# Windows 系统
Noco-win-arm64.exe
```
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
routeAlias: md-local-step-3
---
# <go-back go="md-deploy-step" /> 步骤3 访问网页
访问地址是 `http://localhost:8080`
- 配置管理员账号
- 创建第一个项目
---
transition: fade-out
layout: image-right
image: https://kevisual.cn/root/resources/upload/1.0.0/2025-12/rRpZIM_IJmc.webp
routeAlias: md-docker-deploy
---
# <go-back go="md-deploy-step" /> docker 部署示例
使用 Docker 部署 NocoDB 非常简单。以下是一个基本的 `docker-compose.yml` 示例:
```yaml
services:
nocodb:
image: nocodb/nocodb:latest
container_name: nocodb
ports:
- "8080:8080"
volumes:
- ./nocodb:/usr/app/data
restart: unless-stopped
```
- 保存为 `docker-compose.yml` 文件
- 运行 `docker-compose up -d` 启动服务
- 访问 `http://你的服务器IP:8080` 进行配置