下載可執行文件:https://pan.baidu.com/s/1G7NNwl7rYfnIXtZxelOGBg
ubuntu需要使用 IntelliJIDEALicenseServer_linux_amd64 ,把該文件傳到服務器的某個目錄,我是放在了/var/local/software目錄下
進入上面的目錄,執行一下命令設置文件可執行權限
sudo chmod +x ./IntelliJIDEALicenseServer_linux_amd64
使用一下命令創建服務文件
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
保存退出。
執行以下命令設置服務開機啟動並啟動服務
sudo systemctl enable intellij-license
sudo systemctl start intellij-license
此時可通過http://服務器ip:622進行訪問