代码地址:https://gitee.com/gsls200808/JrebelLicenseServerforJava
? ?1.将 Jrebel License Server 项目克隆到本地,或下载 zip
? ?2.编译并打包项目
? ?3.运行项目
java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 8081
? 默认端口为 8081,你也可以自己修改指定的端口
安装 docker 环境
克隆项目到本地
创建镜像
cd /path/to/projectmvn packagedocker build -t jrebel-ls
运行镜像
docker run -d --name jrebel-ls --restart always -e PORT=9001 -p 9001:9001 jrebel-ls
默认端口为 9001,你也可以自己修改指定的端口
运行,成功则显示如下
点击激活 Idea
激活方式选择 License server
输入激活路径:
http://localhost:8081/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
点击 ACTIVATE 完成激活
下载并安装 Jrebel
打开激活界面,选择激活方式为:Connect to online licensing service
在 Team URL (required) 一栏输入你的激活服务器地址,如:
http://localhost:8081/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
在 Email address (required) 一栏输入你的邮箱地址,可以随意填写
点击 Activate 完成激活,激活前记得勾选 “I agree with the terms & conditions of the License Agreement” 选项,否则无法激活
Jrebel License Server 激活 IDEA-Jrebel-在线-离线-均适用
原文:https://www.cnblogs.com/luckyang/p/14134002.html