-
Notifications
You must be signed in to change notification settings - Fork 5k
docs(tsdb): refactor install and start part #35256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,103 +4,19 @@ title: 使用安装包快速体验 TDengine TSDB | |||||||||||
| description: 使用安装包快速体验 TDengine TSDB | ||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| import Tabs from "@theme/Tabs"; | ||||||||||||
| import TabItem from "@theme/TabItem"; | ||||||||||||
| import PkgList from "/src/components/PkgList"; | ||||||||||||
| import InstallationTabs from "../_installation_tabs.mdx"; | ||||||||||||
| import StartTabs from "../_start_tabs.mdx"; | ||||||||||||
|
|
||||||||||||
| import Getstarted from "./_get_started.mdx"; | ||||||||||||
|
|
||||||||||||
| 为了能够快速体验 TDengine TSDB 的完整功能,推荐您使用 TDengine TSDB-Enterprise. 本节首先介绍如何通过安装包快速安装 TDengine TSDB-Enterprise, 然后介绍如何在 Linux 环境下体验 TDengine TSDB 的写入、查询、可视化管理、与 Grafana 集成和零代码数据写入等功能。如果您希望为 TDengine TSDB 贡献代码或对内部技术实现感兴趣,请参考 [TDengine TSDB GitHub 主页](https://github.com/taosdata/TDengine). | ||||||||||||
|
|
||||||||||||
| ## 安装 | ||||||||||||
|
|
||||||||||||
| <Tabs> | ||||||||||||
| <TabItem label="Linux 系统" value="tarinst"> | ||||||||||||
|
|
||||||||||||
| 1. 从列表中下载获得 tar.gz 安装包: | ||||||||||||
| <PkgList productName="TDengine TSDB-Enterprise" platform="Linux-Generic" /> | ||||||||||||
| 2. 进入到安装包所在目录,使用 `tar` 解压安装包,以 x64 架构为例: | ||||||||||||
|
|
||||||||||||
| ```bash tsdb-ee | ||||||||||||
| tar -zxvf tdengine-tsdb-enterprise-{{VERSION}}-linux-x64.tar.gz | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 3. 进入到安装包所在目录,先解压文件后,进入子目录,执行其中的 install.sh 安装脚本。 | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| sudo ./install.sh | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| </TabItem> | ||||||||||||
| <TabItem label="Windows 系统" value="windows"> | ||||||||||||
|
|
||||||||||||
| 1. 从列表中下载获得最新 Windows 安装程序: | ||||||||||||
| <PkgList productName="TDengine TSDB-Enterprise" platform="Windows" /> | ||||||||||||
| 2. 运行安装程序,根据提示完成 TDengine 的安装。 | ||||||||||||
|
|
||||||||||||
| </TabItem> | ||||||||||||
| </Tabs> | ||||||||||||
|
|
||||||||||||
| 更多类型和版本的安装包,请前往 [TDengine 产品下载中心](https://www.taosdata.com/download-center?product=TDengine+TSDB-Enterprise) 下载。 | ||||||||||||
| <InstallationTabs /> | ||||||||||||
|
||||||||||||
|
|
||||||||||||
| ## 启动 | ||||||||||||
|
|
||||||||||||
| <Tabs> | ||||||||||||
| <TabItem label="Linux 系统" value="linux"> | ||||||||||||
|
|
||||||||||||
| 完成安装后,请在终端执行以下脚本,启动所有服务: | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| start-all.sh | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| TDengine TSDB 的所有组件均使用 systemd 来进行服务管理,可以使用以下命令查看服务的状态: | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| sudo systemctl status taosd | ||||||||||||
| sudo systemctl status taosadapter | ||||||||||||
| sudo systemctl status taoskeeper | ||||||||||||
| sudo systemctl status taos-explorer | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 如果查看到服务的状态为 "Active: active (running) since ...", 则说明服务已经启动成功。 | ||||||||||||
|
|
||||||||||||
| </TabItem> | ||||||||||||
| <TabItem label="Windows 系统" value="windows"> | ||||||||||||
|
|
||||||||||||
| 安装完成后,请以管理员身份打开一个 cmd 窗口。`start-all.bat` 是统一入口脚本,无参数时默认执行启动,也支持 `status` 和 `stop` 子命令。 | ||||||||||||
|
|
||||||||||||
| 启动所有服务: | ||||||||||||
|
|
||||||||||||
| ```cmd | ||||||||||||
| C:\TDengine\start-all.bat | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 查看服务状态: | ||||||||||||
|
|
||||||||||||
| ```cmd | ||||||||||||
| C:\TDengine\start-all.bat status | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 停止所有服务: | ||||||||||||
|
|
||||||||||||
| ```cmd | ||||||||||||
| C:\TDengine\start-all.bat stop | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 如果需要分别查看各个 Windows Service 的原始状态,可以使用以下命令: | ||||||||||||
|
|
||||||||||||
| ```cmd | ||||||||||||
| sc query taosd | ||||||||||||
| sc query taosadapter | ||||||||||||
| sc query taosx | ||||||||||||
| sc query taoskeeper | ||||||||||||
| sc query taos-explorer | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| 如果 `start-all.bat status` 中显示服务状态为 `running`,或者 `sc query` 输出中包含 `RUNNING`,则说明对应服务已经启动成功。 | ||||||||||||
|
|
||||||||||||
| </TabItem> | ||||||||||||
| </Tabs> | ||||||||||||
|
|
||||||||||||
| import Getstarted from './_get_started.mdx' | ||||||||||||
| <StartTabs /> | ||||||||||||
|
Comment on lines
18
to
+20
|
||||||||||||
|
|
||||||||||||
|
||||||||||||
| ### 使用 systemd drop-in 文件自定义 taosd 启动参数 | |
| 如需通过 systemd drop-in 文件调整 `taosd` 的启动参数,请参考安装与运维文档中的对应说明。 |
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本页之前的 Windows 启动指引包含 start-all.bat/status/stop 等说明;现在改为复用 <StartTabs /> 后,Windows 只剩 sc start ... 且路径也变为 C:\TDengine TSDB,并且 Linux tab 还包含指向“Systemd drop-in”小节的页内锚点(该锚点在本页不存在)。如果本页仍定位为企业版“快速体验”,建议提供专用的 StartTabs(或通过 props 控制是否展示该链接与 Windows 启动方式),避免引入不适用/失效的指引。
Uh oh!
There was an error while loading. Please reload this page.