Я пытаюсь запустить команду java -jar jenkins.war
.Он успешно работает, и я могу получить к нему доступ через http://localhost:8080.
Но когда я набираю CTRL + C из командной строки, служба jenkins отключается.
Кто-нибудь может сказать мне, в чем может быть проблема?
LOG
-
-bash-4.1$ java -jar jenkins.war
Running from: /home/htr/temp/jenkins.war
webroot: $user.home/.jenkins
Oct 16, 2018 6:02:18 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 16, 2018 6:02:18 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-winstone-2.9
Oct 16, 2018 6:02:21 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /home/htr/.jenkins found at: $user.home/.jenkins
Oct 16, 2018 6:02:22 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
Oct 16, 2018 6:02:22 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 16, 2018 6:02:22 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 16, 2018 6:02:22 AM hudson.init.impl.InstallUncaughtExceptionHandler init
INFO: Succesfully installed a global UncaughtExceptionHandler.
Oct 16, 2018 6:02:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 16, 2018 6:02:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 16, 2018 6:02:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 16, 2018 6:02:23 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 16, 2018 6:02:26 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Oct 16, 2018 6:02:26 AM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 44513
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 16, 2018 6:02:26 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 16, 2018 6:02:26 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Oct 16, 2018 6:04:33 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 127,379 ms
jenkins version : 1.654
java version:
openjdk ve**strong text**rsion "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Кто-нибудь может мне сказать, нужно ли мне запускать jenkins как пользователь sudo или это связано с другой проблемой?