在后台启动詹金斯

编程入门 行业动态 更新时间:2024-10-08 02:27:34
本文介绍了在后台启动詹金斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用.war文件在服务器上运行jenkins.他们说使用

I'm using .war file to run jenkins on my server. They say use

java -jar jenkins.war

(来源: wiki.jenkins-ci /display/JENKINS/Starting + and + Accessing + Jenkins ) 启动服务器.这将启动服务器并在屏幕上显示登录,并且可以使用了.

(Source: wiki.jenkins-ci/display/JENKINS/Starting+and+Accessing+Jenkins) to start the server. This starts the server and shows log on screen and it is ready to use.

唯一的问题是当我"ctrl + c"时它将停止服务器.我希望它应该在后台启动,以便即使我从腻子中退出也应该正在运行.我知道如果使用本机软件包".deb",它将作为服务安装,但我只想使用".war"文件而不是本机软件包".deb"来安装.甚至有可能吗?

The only problem is when I "ctrl+c" it stops the server. I want that it should start in the background so that even though I exit from putty it should be running. I know if use native package ".deb" it will be installed as service but I want to do it using only ".war" file and not as native package ".deb". Is it even possible?

推荐答案

只需按照@KeepCalmAndCarryOn的建议将流程置于后台即可.

Just put the process in the background as suggested by @KeepCalmAndCarryOn.

nohup java -jar jenkins.war &

我希望这会有所帮助.

更多推荐

在后台启动詹金斯

本文发布于:2023-11-05 10:19:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560568.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:金斯   后台

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!