-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #563 from yalechen-cyw/main
📝 update enhance deploy doc
- Loading branch information
Showing
5 changed files
with
9 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,2 @@ | ||
# CLS使用文档 | ||
CLS(Common License Server), 是TCA独立工具的License鉴权微服务。 | ||
|
||
## 准备 | ||
1. 一台CLS微服务专属机器,CLS微服务需要跟该机器绑定 | ||
|
||
## 部署 | ||
1. 在CLS目录下执行以下命令,获取Server ID和client License | ||
```shell | ||
$ ./cls server | ||
2022-04-13 18:35:29.356510559 +0800 CST [INFO] Version: 20220328.1 | ||
2022-04-13 18:35:29.44083463 +0800 CST [INFO] The client license is: | ||
xxx | ||
2022-04-13 18:35:29.454552966 +0800 CST [INFO] License Server ID: xxx | ||
``` | ||
- Server ID: 机器码,用于跟TCA团队申请License授权 | ||
- client License: 提供给TCA Client, 方便TCA Client进行工具鉴权(重要,建议备份留底) | ||
|
||
2. 在TCA Client的[config.ini](../../client/config.ini)中配置CLS微服务,比如 | ||
```ini | ||
[LICENSE_CONFIG] | ||
; [可选]使用独立工具时,需要填写,默认不需要 | ||
; License服务器url, base_path, license | ||
URL=http://<IP或者域名>:<port> | ||
BASE_PATH= | ||
LICENSE=<client License> | ||
``` | ||
|
||
3. 跟TCA团队邮件申请License | ||
|
||
- 发送邮箱: | ||
``` | ||
v_cocohwang@tencent.com | ||
anjingliu@tencent.com | ||
yalechen@tencent.com | ||
tommyzhang@tencent.com | ||
``` | ||
|
||
- 格式如下: | ||
|
||
TCA独立工具License申请邮件 | ||
|
||
| | | | ||
| :----: | :----: | | ||
| 申请人名称 | xxx | | ||
| 申请人所在组织名称 | xxx | | ||
| 申请人所在组织类型 | 可选选项:公司/学校/个人 | | ||
| 申请人邮箱 | xxx | | ||
| 申请人手机号码 | xxx | | ||
| 首次登记的机器码 | xxx | | ||
| 体验申请用途 | xxx | | ||
|
||
4. 收到TCA团队回复邮件之后,在CLS目录下的[config.yaml](config.yaml)文件中填写License <br> | ||
注意!请遵从yaml格式,比如: | ||
- 键值对中,冒号 `:` 后面一定要跟一个空白字符,示例 `key: value`. | ||
|
||
5. 执行以下命令启动 | ||
```shell | ||
./cls server -d | ||
``` | ||
|
||
6. 启动TCA分析任务 | ||
|
||
## 高级 | ||
### 自动重启 | ||
```shell | ||
# 查找CLS进程ID | ||
ps aux|grep cls | ||
# 重启微服务 | ||
kill -USR2 <pid> | ||
``` | ||
CLS(Common License Server), 是TCA独立工具的License鉴权微服务,请参考[使用文档](https://tencent.github.io/CodeAnalysis/zh/quickStarted/enhanceDeploy.html#cls%E9%83%A8%E7%BD%B2)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters