سؤال

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