当我使用Windows安装程序版本设置我的Jenkins主机并尝试使用“通过Java webstart启动Jenkins”连接到从机时,我可以将从属服务器连接到主服务器,没有任何问题 .

但是,我现在需要使用“java -jar jenkins.war”启动jenkins Master,这样我就能看到实时测试的GUI界面,但我似乎无法以这种方式创建与从机的连接(当我尝试访问从机上的url,它表示无法显示) .

在jenkins作为java程序运行时是否可以连接?或者我可以使用另一种方法吗?

编辑:当我在控制台上启动jenkins时,下面是控制台输出的副本 .

C:\Program Files (x86)\Jenkins>java -jar jenkins.war
Running from: C:\Program Files (x86)\Jenkins\jenkins.war
webroot: $user.home/.jenkins
Oct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @279ms
Oct 11, 2016 3:07:09 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
←[33mOct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
←[0mOct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Oct 11, 2016 3:07:10 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: C:\Users\user\.jenkins found at: $user.home/.jenkins
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@1aac487{/,file:/C:/Users/user/.jenkins/war/,AVAILABLE}{C:\Us
ers\user\.jenkins\war}
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@1154ccd{HTTP/1.1}{0.0.0.0:8080}
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @1571ms
Oct 11, 2016 3:07:11 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 11, 2016 3:07:11 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 11, 2016 3:07:11 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 11, 2016 3:07:14 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 11, 2016 3:07:15 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1
error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.oper
ations.AbortAndRestartOperation$DescriptorImpl; skipping
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 11, 2016 3:07:16 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Oct 11, 2016 3:07:16 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 4 ms
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
text@150b22a: display name [Root WebApplicationContext]; startup date [Tue Oct 1
1 15:07:17 BST 2016]; root of context hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.supp
ort.StaticWebApplicationContext@150b22a]: org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory@1b4a611
Oct 11, 2016 3:07:17 PM org.springframework.beans.factory.support.DefaultListabl
eBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.
DefaultListableBeanFactory@1b4a611: defining beans [authenticationManager]; root
 of factory hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
text@10920bb: display name [Root WebApplicationContext]; startup date [Tue Oct 1
1 15:07:17 BST 2016]; root of context hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.supp
ort.StaticWebApplicationContext@10920bb]: org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory@1403952
Oct 11, 2016 3:07:17 PM org.springframework.beans.factory.support.DefaultListabl
eBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.
DefaultListableBeanFactory@1403952: defining beans [filter,legacy]; root of fact
ory hierarchy
Oct 11, 2016 3:07:17 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 56276
Oct 11, 2016 3:07:17 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 11, 2016 3:07:17 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running