守护进程

http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html

https://www.jianshu.com/p/79059b06a121

systemd

gedit /etc/systemd/system/jenkins.service 

开机启动

[Unit]
Description=jenkins服务

[Service]
Type=simple
ExecStart=java -jar /usr/share/jenkins/jenkins.war --httpPort=8081

[Install]
WantedBy=multi-user.target
systemctl enable *.service
原文地址:https://www.cnblogs.com/buchizaodian/p/14457636.html