문제

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

java -jar jenkins.war

(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.

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?

도움이 되었습니까?

해결책

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

nohup java -jar jenkins.war &

I hope this helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top