windows安装 jenkins

来源:互联网 发布:win10录歌软件 编辑:程序博客网 时间:2024/05/16 07:20

jenkins war

 本机Windows上安装

在官网http://jenkins-ci.org/上下载最新的安装包jenkins.war,

执行安装命令:java -jar jenkins.war    默认端口8080

指定端口

java -jar jenkins.war --ajp13Port=-1 --httpPort=8085

本机jdk版本要1.8

[html] view plain copy
  1. D:\>java -jar jenkins.war  
  2. Running from: D:\jenkins.war  
  3. webroot: $user.home/.jenkins  
  4. 六月 15, 2017 8:30:39 下午 Main deleteWinstoneTempContents  
  5. 警告: Failed to delete the temporary Winstone file C:\Users\ADMINI~1\AppData\Loc  
  6. al\Temp\winstone\jenkins.war  
  7. 六月 15, 2017 8:30:39 下午 org.eclipse.jetty.util.log.Log initialized  
  8. 信息: Logging initialized @2448ms to org.eclipse.jetty.util.log.JavaUtilLog  
  9. 六月 15, 2017 8:30:39 下午 winstone.Logger logInternal  
  10. 信息: Beginning extraction from war file  
  11. 六月 15, 2017 8:32:04 下午 org.eclipse.jetty.server.handler.ContextHandler  
  12. setContextPath  
  13. 警告: Empty contextPath  
  14. 六月 15, 2017 8:32:05 下午 org.eclipse.jetty.server.Server doStart  
  15. 信息: jetty-9.4.z-SNAPSHOT  
  16. 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.webapp.StandardDescriptorProcessor  
  17. visitServlet  
  18. 信息: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet  
  19. 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.DefaultSessionIdMana  
  20. ger doStart  
  21. 信息: DefaultSessionIdManager workerName=node0  
  22. 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.DefaultSessionIdMana  
  23. ger doStart  
  24. 信息: No SessionScavenger set, using defaults  
  25. 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.HouseKeeper startSca  
  26. venging  
  27. 信息: Scavenging every 660000ms  
  28. Jenkins home directory: C:\Users\Administrator\.jenkins found at: $user.home/.je  
  29. nkins  
  30. 六月 15, 2017 8:32:08 下午 org.eclipse.jetty.server.handler.ContextHandler doSta  
  31. rt  
  32. 信息: Started w.@10650953{/,file:///C:/Users/Administrator/.jenkins/war/,AVAILAB  
  33. LE}{C:\Users\Administrator\.jenkins\war}  
  34. 六月 15, 2017 8:32:09 下午 org.eclipse.jetty.server.AbstractConnector doStart  
  35. 信息: Started ServerConnector@3efe7086{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}  
  36. 六月 15, 2017 8:32:09 下午 org.eclipse.jetty.server.Server doStart  
  37. 信息: Started @92069ms  
  38. 六月 15, 2017 8:32:09 下午 winstone.Logger logInternal  
  39. 信息: Winstone Servlet Engine v4.0 running: controlPort=disabled  
  40. 六月 15, 2017 8:32:09 下午 jenkins.InitReactorRunner$1 onAttained  
  41. 信息: Started initialization  
  42. 六月 15, 2017 8:32:13 下午 jenkins.InitReactorRunner$1 onAttained  
  43. 信息: Listed all plugins  
  44. 六月 15, 2017 8:32:21 下午 jenkins.InitReactorRunner$1 onAttained  
  45. 信息: Prepared all plugins  
  46. 六月 15, 2017 8:32:22 下午 hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope  
  47. $1 error  
  48. 信息: Failed to instantiate optional component hudson.plugins.build_timeout.oper  
  49. ations.AbortAndRestartOperation$DescriptorImpl; skipping  
  50. 六月 15, 2017 8:32:23 下午 jenkins.InitReactorRunner$1 onAttained  
  51. 信息: Started all plugins  
  52. 六月 15, 2017 8:32:23 下午 jenkins.InitReactorRunner$1 onAttained  
  53. 信息: Augmented all extensions  
  54. 六月 15, 2017 8:32:29 下午 jenkins.InitReactorRunner$1 onAttained  
  55. 信息: Loaded all jobs  
  56. 六月 15, 2017 8:32:29 下午 hudson.model.AsyncPeriodicWork$1 run  
  57. 信息: Started Download metadata  
  58. 六月 15, 2017 8:32:30 下午 hudson.model.AllView migrateLegacyPrimaryAllViewLocal  
  59. izedName  
  60. 信息: JENKINS-38606 detected for AllView in ; renaming view from All to all  
  61. 六月 15, 2017 8:32:30 下午 jenkins.InitReactorRunner$1 onAttained  
  62. 信息: Completed initialization  
  63. 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati  
  64. onContext prepareRefresh  
  65. 信息: Refreshing org.springframework.web.context.support.StaticWebApplicationCon  
  66. text@10793f8b: display name [Root WebApplicationContext]; startup date [Thu Jun  
  67. 15 20:32:31 CST 2017]; root of context hierarchy  
  68. 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati  
  69. onContext obtainFreshBeanFactory  
  70. 信息: Bean factory for application context [org.springframework.web.context.supp  
  71. ort.StaticWebApplicationContext@10793f8b]: org.springframework.beans.factory.sup  
  72. port.DefaultListableBeanFactory@756ec023  
  73. 六月 15, 2017 8:32:31 下午 org.springframework.beans.factory.support.DefaultList  
  74. ableBeanFactory preInstantiateSingletons  
  75. 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.  
  76. DefaultListableBeanFactory@756ec023: defining beans [authenticationManager]; roo  
  77. t of factory hierarchy  
  78. 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati  
  79. onContext prepareRefresh  
  80. 信息: Refreshing org.springframework.web.context.support.StaticWebApplicationCon  
  81. text@271a7b15: display name [Root WebApplicationContext]; startup date [Thu Jun  
  82. 15 20:32:31 CST 2017]; root of context hierarchy  
  83. 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati  
  84. onContext obtainFreshBeanFactory  
  85. 信息: Bean factory for application context [org.springframework.web.context.supp  
  86. ort.StaticWebApplicationContext@271a7b15]: org.springframework.beans.factory.sup  
  87. port.DefaultListableBeanFactory@1c27e83b  
  88. 六月 15, 2017 8:32:31 下午 org.springframework.beans.factory.support.DefaultList  
  89. ableBeanFactory preInstantiateSingletons  
  90. 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.  
  91. DefaultListableBeanFactory@1c27e83b: defining beans [filter,legacy]; root of fac  
  92. tory hierarchy  
  93. 六月 15, 2017 8:32:33 下午 hudson.WebAppMain$3 run  
  94. 信息: Jenkins is fully up and running  
  95. 六月 15, 2017 8:32:35 下午 hudson.model.UpdateSite updateData  
  96. 信息: Obtained the latest update center data file for UpdateSource default  
  97. 六月 15, 2017 8:32:37 下午 hudson.model.DownloadService$Downloadable load  
  98. 信息: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller  
  99. 六月 15, 2017 8:32:38 下午 hudson.model.DownloadService$Downloadable load  
  100. 信息: Obtained the updated data file for hudson.tasks.Ant.AntInstaller  
  101. 六月 15, 2017 8:32:39 下午 hudson.model.DownloadService$Downloadable load  
  102. 信息: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller  
  103. 六月 15, 2017 8:32:41 下午 hudson.model.DownloadService$Downloadable load  
  104. 信息: Obtained the updated data file for hudson.tools.JDKInstaller  
  105. 六月 15, 2017 8:32:41 下午 hudson.model.AsyncPeriodicWork$1 run  
  106. 信息: Finished Download metadata. 12,057 ms  

1)Jenkins安装的默认目录是$user.home/.jenkins,即C:\Users\XXX\.jenkins;
2)Jenkins监听Web访问的默认端口是8080;
3)最后出现“Jenkins is fully up and running ”提示,表示安装成功。
通过访问http://localhost:8080,就可以进入本机上的Jenkins界面。界面如下: