在后台启动詹金斯 [英] Start jenkins in the background

查看:246
本文介绍了在后台启动詹金斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

java -jar jenkins.war

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

(Source: https://wiki.jenkins-ci.org/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 &

我希望这会有所帮助.

这篇关于在后台启动詹金斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆