版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mazhen1991/article/details/80805183
vi /etc/systemd/system/intellij-license.service
[Unit]
Description=Intellij license server
[Service]
ExecStart=/var/local/software/IntelliJIDEALicenseServer_linux_amd64 -p 9999
Restart=always
RestartSec=10
SyslogIdentifier=intellij-license-log
注意,端口可以自定义,尽量不要定义为1024以内的。
- 启动脚本
systemctl enable intellij-license
systemctl start intellij-license
之后想要停止和启动脚本,则:
service intellij-license stop
service intellij-license start