使用已经封装好的jar包,保持一直运行即可(放到服务器上)。 使用如下命令下载
wget https://terwer.oss-cn-qingdao.aliyuncs.com/active/JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar
服务器上使用如下命令启动:
java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 1008 &
如果出现以下内容则表示服务器搭建成功:
[root@terwergreen jrebel]# java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 1008 &
[1] 3422
[root@terwergreen jrebel]# 2018-05-17 16:30:30.949:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2018-05-17 16:30:30.997:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:1008
License Server started at http://localhost:1008
JetBrains Activation address was: http://localhost:1008/
JRebel 7.1 and earlier version Activation address was: http://localhost:1008/{tokenname}, with any email.
JRebel 2018.1 and later version Activation address was: http://localhost:1008/{guid}(eg:http://localhost:1008/1b7b1114-4295-4953-9cda-72cf6b58c8ae), with any email.
注意:要使jar文件在退出中断后持续运行需要在末尾加上&, 代码如下:
java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 1008 &