分享自建的 Jrebel License Server 激活 Jrebel

时间:2020-01-15
本文章向大家介绍分享自建的 Jrebel License Server 激活 Jrebel,主要包括分享自建的 Jrebel License Server 激活 Jrebel使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

说明


代码来自于开源项目: gsls200808 / JrebelLicenseServerforJava


自建的服务地址


http://jrebel.yanjiayu.cn:9001/

使用我提供的服务地址而非自行安装的,可直接跳过第二部直接看使用教程


自行安装


本地环境安装

  1. 安装 JDK,并设置环境变量,需要至少 JDK6.0+

  2. 安装 MAVEN

      将 Jrebel License Server 项目克隆到本地,或下载 zip

    项目地址:https://gitee.com/gsls200808/JrebelLicenseServerforJava

git clone https://gitee.com/gsls200808/JrebelLicenseServerforJava.git

3.编译并打包项目

cd /path/project
mvn clean
mvn commpile
mvn exec:java -Dexec.mainClass="com.vvvtimes.server.MainServer" -Dexec.args="-p 8081"
mvn package

4.运行项目

java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 8081

默认端口为 8081,你也可以自己修改指定的端口


使用 Docker 运行

  1. 安装 docker 环境

    详情参考官网:https://www.docker.com/get-started

  2. 克隆项目到本地

  3. 创建镜像

cd /path/to/project
mvn package
docker build -t jrebel-ls

       4. 运行镜像

docker run -d --name jrebel-ls --restart always -e PORT=9001 -p 9001:9001 jrebel-ls

默认端口为 9001,你也可以自己修改指定的端口


使用教程


Idea 激活

  • idea2018.2 及后续版本修改了激活报文,故无法激活。
  • idea2017 及后续版本不可使用本地地址激活
  1. 点击激活 Idea
  2. 激活方式选择 License server
  3. 输入激活路径:http://jrebel.yanjiayu.cn:9001/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
  4. 点击 ACTIVATE 完成激活

Jrebel 激活

  1. 下载并安装 Jrebel
  2. 打开激活界面,选择激活方式为:Connect to online licensing service
  3. 在 Team URL (required) 一栏输入你的激活服务器地址,如:http://jrebel.yanjiayu.cn:9001/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
  4. 在 Email address (required) 一栏输入你的邮箱地址,可以随意填写
  5. 点击 Activate 完成激活,激活前记得勾选 “I agree with the terms & conditions of the License Agreement” 选项,否则无法激活

原文地址:https://www.cnblogs.com/sunshinekevin/p/12195607.html