在Ubuntu上搭建IntelliJ IDEA license server服务器

1、下载激活文件 

2、ubuntu需要使用 IntelliJIDEALicenseServer_linux_amd64 ,把该文件传到服务器的某个目录,我是放在了/jideal 下

3、进入上面的目录,执行一下命令设置文件可执行权限

  

sudo chmod +x ./IntelliJIDEALicenseServer_linux_amd64

4、 使用一下命令创建服务文件

sudo nano /etc/systemd/system/intellij-license.service

  填入以下信息

[Unit]

Description=Intellij license server

[Service]

ExecStart=/var/local/software/IntelliJIDEALicenseServer_linux_amd64 -p 622

Restart=always

RestartSec=10

SyslogIdentifier=intellij-license-log

   ctrl + X  输入 Y 退出

6、执行以下命令设置服务开机启动并启动服务

sudo systemctl enable intellij-license

sudo systemctl start intellij-license

  注:若以上命令 报 sudo: unable to resolve host XXX(地址名称)

   此时修改  /etc/hosts 文件第一行 : 127.0.0.1       localhost       ---->   127.0.0.1       localhost    XXX(地址名称)

   则  可将 XXX指引到  127.0.0.1

7、   重启  服务

  

 service  intellij-license stop

 service  intellij-license start

8、 阿里云服务器的话 需要将端口开放。

 

posted @ 2018-09-11 11:22  MvloveYouForever  阅读(203)  评论(0编辑  收藏  举报