File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# CLS使用文档
2- CLS(Common License Server), 是TCA独立工具的License鉴权微服务。
3-
4- ## 准备
5- 1 . 一台CLS微服务专属机器,CLS微服务需要跟该机器绑定
6-
7- ## 部署
8- 1 . 在CLS目录下执行以下命令,获取Server ID和client License
9- ``` shell
10- $ ./cls server
11- 2022-04-13 18:35:29.356510559 +0800 CST [INFO] Version: 20220328.1
12- 2022-04-13 18:35:29.44083463 +0800 CST [INFO] The client license is:
13- xxx
14- 2022-04-13 18:35:29.454552966 +0800 CST [INFO] License Server ID: xxx
15- ```
16- - Server ID: 机器码,用于跟TCA团队申请License授权
17- - client License: 提供给TCA Client, 方便TCA Client进行工具鉴权(重要,建议备份留底)
18-
19- 2 . 在TCA Client的[ config.ini] ( ../../client/config.ini ) 中配置CLS微服务,比如
20- ``` ini
21- [LICENSE_CONFIG]
22- ; [可选]使用独立工具时,需要填写,默认不需要
23- ; License服务器url, base_path, license
24- URL =http://<IP或者域名>:<port>
25- BASE_PATH =
26- LICENSE =<client License>
27- ```
28-
29- 3 . 跟TCA团队邮件申请License
30-
31- - 发送邮箱:
32- ```
33- v_cocohwang@tencent.com
34- anjingliu@tencent.com
35- yalechen@tencent.com
36- tommyzhang@tencent.com
37- ```
38-
39- - 格式如下:
40-
41- TCA独立工具License申请邮件
42-
43- | | |
44- | :----: | :----: |
45- | 申请人名称 | xxx |
46- | 申请人所在组织名称 | xxx |
47- | 申请人所在组织类型 | 可选选项:公司/学校/个人 |
48- | 申请人邮箱 | xxx |
49- | 申请人手机号码 | xxx |
50- | 首次登记的机器码 | xxx |
51- | 体验申请用途 | xxx |
52-
53- 4 . 收到TCA团队回复邮件之后,在CLS目录下的[ config.yaml] ( config.yaml ) 文件中填写License <br >
54- 注意!请遵从yaml格式,比如:
55- - 键值对中,冒号 ` : ` 后面一定要跟一个空白字符,示例 ` key: value ` .
56-
57- 5 . 执行以下命令启动
58- ``` shell
59- ./cls server -d
60- ```
61-
62- 6 . 启动TCA分析任务
63-
64- ## 高级
65- ### 自动重启
66- ``` shell
67- # 查找CLS进程ID
68- ps aux| grep cls
69- # 重启微服务
70- kill -USR2 < pid>
71- ```
2+ CLS(Common License Server), 是TCA独立工具的License鉴权微服务,请参考[ 使用文档] ( https://tencent.github.io/CodeAnalysis/zh/quickStarted/enhanceDeploy.html#cls%E9%83%A8%E7%BD%B2 ) 。
You can’t perform that action at this time.
0 commit comments