使用教程
代碼地址:https://gitee.com/gsls200808/JrebelLicenseServerforJava
運行服務-jar方式
1.將 Jrebel License Server 項目克隆到本地,或下載 zip
2.編譯並打包項目
mvn clean
mvn commpile
mvn exec:java -Dexec.mainClass="com.vvvtimes.server.MainServer" -Dexec.args="-p 8081" <br> mvn package
3.運行項目
java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 8081
默認端口為 8081,你也可以自己修改指定的端口
運行服務-docker方式
-
安裝 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(2020.2.3測試成功)
-
點擊激活 Idea
-
激活方式選擇 License server
-
輸入激活路徑:
http://localhost:8081/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
- 前半部分為你的激活服務器地址和端口
- 后半部分為 UUID,你可以前往以下網站自行生成:https://www.uuidgenerator.net/
-
點擊 ACTIVATE 完成激活
Jrebel 激活
-
下載並安裝 Jrebel
-
打開激活界面,選擇激活方式為:Connect to online licensing service
-
在 Team URL (required) 一欄輸入你的激活服務器地址,如:
http://localhost:8081/64245b6b-ef68-4bdc-aabf-7f8e85a540e4
- 前半部分為你的激活服務器地址
- 后半部分為 UUID,你可以前往以下網站自行生成:https://www.uuidgenerator.net/
-
在 Email address (required) 一欄輸入你的郵箱地址,可以隨意填寫
-
點擊 Activate 完成激活,激活前記得勾選 “I agree with the terms & conditions of the License Agreement” 選項,否則無法激活