From 818af9265e41a851a73e0733a075e690364ea605 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Fri, 18 Apr 2025 11:50:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20license=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03-License软件操作手册.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/03-configuration/03-License软件操作手册.md diff --git a/docs/03-configuration/03-License软件操作手册.md b/docs/03-configuration/03-License软件操作手册.md new file mode 100644 index 0000000..21149e9 --- /dev/null +++ b/docs/03-configuration/03-License软件操作手册.md @@ -0,0 +1,36 @@ +# Licence软件操作手册 + +## 项目介绍 + +License也就是版权许可证书,一般用于收费软件给付费用户提供的访问许可证明,License认证是一种基于授权许可的验证方式。应用程序在启动或运行过程中会检查License文件的有效性,如果检测到无效或过期的 License,应用程序将拒绝提供服务。 + +本项目用于生成license.lic证书,将证书供给用户使用。本项目不对外提供。 + +* 安装后目录树 + +```text +/opt/lic # work root directory +├── bin # shell script and binary file +├── docker # docker compose work directory +│   └── jar # jar package +└── docs # related document directory +``` + +* 启动项目 +```sh + cd /opt/lic/bin + sudo ./licensecontrol.sh start +``` + +* 生成证书 +```sh + cd /opt/lic/bin + sudo ./generatelic.sh -t "2026-05-31 23:59:59" -code "ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VJQDSWPjp+J" +``` +generatelic脚本参数说明: + -t 证书到期时间,必填,格式如"2026-05-31 23:59:59" + -code 激活码,可选,格式如"ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VaJQDSWPjp+J" +激活码用于指定机器使用证书,激活码在wanfi项目运行后自动生成在/opt/wfc/docker/conf/license/activation_code.txt + +证书生成在/opt/lic/docker/license/license.lic +将license.lic文件放入wanfi项目目录/opt/wfc/docker/conf/license/,wanfi项目才可使用 \ No newline at end of file