守护进程

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

 

posted @ 2021-02-27 23:01  富坚老贼  阅读(49)  评论(0编辑  收藏  举报