Skip to content

chore(docs): add license server docs#35275

Open
acerDebugman wants to merge 3 commits intomainfrom
chore/add-license-server-docs
Open

chore(docs): add license server docs#35275
acerDebugman wants to merge 3 commits intomainfrom
chore/add-license-server-docs

Conversation

@acerDebugman
Copy link
Copy Markdown
Contributor

Description

Issue(s)

  • Close/close/Fix/fix/Resolve/resolve: Issue Link

Checklist

Please check the items in the checklist if applicable.

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

Copilot AI review requested due to automatic review settings April 30, 2026 16:34

### 服务信息

- 已在本地启动 CLS 服务, 默认情况下会在本机管理端显示 `CLS ID` 和公钥令牌。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
- 已在本地启动 CLS 服务, 默认情况下会在本机管理端显示 `CLS ID` 和公钥令牌。
- 已在本地启动 CLS 服务,默认情况下会在本机管理端显示 `CLS ID` 和公钥令牌。

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

新增 License Center(ELS/CLS)离线授权流程的中文参考文档,帮助用户完成 CLS 部署、离线令牌导入,以及 TSDB 侧的 CLS 配置对接。

Changes:

  • 新增 License-Center 参考手册 页面,覆盖离线授权全流程与 TSDB/Explorer 配置入口
  • 补充流程截图资源(ELS/CLS 界面示例)

Reviewed changes

Copilot reviewed 1 out of 14 changed files in this pull request and generated 4 comments.

File Description
docs/zh/14-reference/01-components/13-license-center/index.mdx 新增 License Center 离线授权操作手册与 TSDB 配置说明
docs/zh/14-reference/01-components/13-license-center/assets/license-center-els-customer-create-entry.png 新增文档配图(ELS 客户管理入口)
docs/zh/14-reference/01-components/13-license-center/assets/license-center-cls-license-import-dialog.png 新增文档配图(CLS 离线导入对话框)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

解压安装包:

```bash
license-center-cls-0.1.0-linux-amd64.tar.gz
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“解压安装包”这段的 bash 代码块里只有压缩包文件名,不是可执行命令;按现有文档惯例这里应给出实际解压命令(例如 tar -zxvf ...),否则读者容易误解为直接执行文件名。

Suggested change
license-center-cls-0.1.0-linux-amd64.tar.gz
tar -zxvf license-center-cls-0.1.0-linux-amd64.tar.gz

Copilot uses AI. Check for mistakes.
- `local.rpc_port`: 表示与 ELS 服务通信端口
- `els.host`: 表示 ELS 服务的地址
- `els.port`: 表示 ELS 服务的端口
- `els.enable`: 表是否开启与 ELS 的通信
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参数说明里 els.enable 这一行有明显笔误,导致语义不通顺:应为“表示是否开启…”。

Suggested change
- `els.enable`: 表是否开启与 ELS 的通信
- `els.enable`: 表示是否开启与 ELS 的通信

Copilot uses AI. Check for mistakes.
Comment on lines +150 to +155
```bash
ALTER ALL DNODES 'clsEnabled' '1';
ALTER ALL DNODES 'clsRefreshInterval' '15';
ALTER ALL DNODES 'clsUrl' 'http://192.168.2.158:6072';
ALTER ALL DNODES 'clsLicenseId' 'lic-53467044-2dad-4be2-9280-adacb201a644';
```
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQL 示例使用了 bash 代码块,会导致高亮/复制语义不准确;建议改为 sql,避免读者误以为需要在 shell 里执行。

Copilot uses AI. Check for mistakes.

在 taos-explorer 组件的 系统管理/许可证 页面,点击激活许可证按钮后,可以看到如下配置页面:

![image-20260501002702206](./assets/image-20260501002702206.png)
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该图片的替代文本是自动生成的文件名(image-20260501002702206),对屏幕阅读器不友好;建议改为描述性 alt 文本(例如“taos-explorer 许可证激活配置页面”),与本文其余图片保持一致。

Suggested change
![image-20260501002702206](./assets/image-20260501002702206.png)
![taos-explorer 许可证激活配置页面](./assets/image-20260501002702206.png)

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive reference manual for the License-Center component, covering installation, configuration, and the offline authorization workflow for TDengine TSDB and IDMP. The review feedback suggests several improvements to the documentation, including providing the specific shell command for package extraction, correcting a typo and punctuation inconsistency in the parameter descriptions, using the correct language tag for SQL code blocks, and renaming an image file to be more descriptive.

解压安装包:

```bash
license-center-cls-0.1.0-linux-amd64.tar.gz
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The text mentions extracting the package, but only the filename is shown. It is recommended to provide the actual command.

tar -zxvf license-center-cls-0.1.0-linux-amd64.tar.gz

- `local.rpc_port`: 表示与 ELS 服务通信端口
- `els.host`: 表示 ELS 服务的地址
- `els.port`: 表示 ELS 服务的端口
- `els.enable`: 表是否开启与 ELS 的通信
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Typo: '表' should be '表示' to be consistent with the other parameter descriptions.

- `els.enable`: 表是否开启与 ELS 的通信
- `database.path`: 表示数据存放路径
- `log.level`: 表示日志级别
- `log.file`:表示日志路径
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consistency: Use a half-width colon ':' instead of a full-width colon ':' to match the style of the preceding lines.


```bash
ALTER ALL DNODES 'clsEnabled' '1';
ALTER ALL DNODES 'clsRefreshInterval' '15';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The code block contains SQL statements. Using the 'sql' language tag instead of 'bash' will provide better syntax highlighting.


![image-20260501002702206](./assets/image-20260501002702206.png)

配置字段含义和 SQL 配置一致。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The image filename 'image-20260501002702206.png' appears to be a default name. Consider renaming the file to something more descriptive like 'license-center-explorer-config.png'.

解压安装包:

```bash
license-center-cls-0.1.0-linux-amd64.tar.gz
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where can the user download the package?

rpc_port = 6073

[els]
host = "192.168.2.158"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use a common ip


[els]
host = "192.168.2.158"
port = 8094
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8094 seems not in the port range.

ALTER ALL DNODES 'clsEnabled' '1';
ALTER ALL DNODES 'clsRefreshInterval' '15';
ALTER ALL DNODES 'clsUrl' 'http://192.168.2.158:6072';
ALTER ALL DNODES 'clsLicenseId' 'lic-53467044-2dad-4be2-9280-adacb201a644';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All license IDs and the like, including those in images, need to be blurred.


## 离线授权操作流程

### 1. 在 ELS 中创建客户
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user does not need to operate this part, so do not include it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants