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

IntelliJIDEALicenseServer_linux_amd64 ,把该文件传到服务器的某个目录,我是放在了/var/local/software目录下

sudo chmod +x ./IntelliJIDEALicenseServer_linux_amd64

创建系统启动文件

sudo vi /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

保存退出。

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

sudo systemctl enable intellij-license

sudo systemctl start intellij-license

此时可通过http://服务器ip:622进行访问

原文地址:https://www.cnblogs.com/fws407296762/p/9177173.html