环境
Intellij IDEA : 2019.2.4
Jrebel: 2019.2.1
MacBook pro
前言
今天JRebel到期了,想重新**的时候,发现work offline点击提示错误信息:
Cannot reactivate, offline seat in use. Click Work online in JRebel
configuration to return offline seat
原因是切换在线模式用的HTTP协议的DELETE方法,不是GET/POST,被拦截了
所以呢,只能手动删除本地license重新**(实际上我并没有删除,只是修改)。
步骤
找到JRebel的配置文件
我的路径:/Users/yutao/.jrebel
找到jrebel.properties文件。打开之后,修改rebel.license.url。
修改成有效网址,比如网上有人维护的:https://jrebel.qekang.com/{GUID},自己搜索在线guid生成替换就行。
之后重启Intellij IDEA,这时就可以点击Work offline,切换成在线模式。
更换license
点击Change license:
Team URL(connect to online licensing service) 这一栏,再重新输入一下,主要是网址那一块。
然后再点击Change license。就可以保存了。
注意
一、如果不切换到在线模式,离线模式 是不让你Change license的,会报一下错误:
Cannot reactivate, offline seat in use. Click Work online in JRebel
configuration to return offline seat
二、不修改文件,直接点击Work offline会报如下错误:
Failed to contact License Server. Offline seat not removed.
Refer to License Server manual for forced offline seat deletion
解决办法都是上面的步骤
参考地址:
Jrebel&JetBrains License Server 最新****方式长期稳定版本
http://blog.lanyus.com/archives/317.html