本机Windows上安装
在在官网http://jenkins-ci.org/上下载最新的安装包jenkins.war,
执行安装命令:java -jar jenkins.war 默认端口8080
指定端口
java -jar jenkins.war --ajp13Port=-1 --httpPort=8085
本机jdk版本要1.8
- D:\>java -jar jenkins.war
- Running from: D:\jenkins.war
- webroot: $user.home/.jenkins
- [33m六月 15, 2017 8:30:39 下午 Main deleteWinstoneTempContents
- 警告: Failed to delete the temporary Winstone file C:\Users\ADMINI~1\AppData\Loc
- al\Temp\winstone\jenkins.war
- [0m六月 15, 2017 8:30:39 下午 org.eclipse.jetty.util.log.Log initialized
- 信息: Logging initialized @2448ms to org.eclipse.jetty.util.log.JavaUtilLog
- 六月 15, 2017 8:30:39 下午 winstone.Logger logInternal
- 信息: Beginning extraction from war file
- [33m六月 15, 2017 8:32:04 下午 org.eclipse.jetty.server.handler.ContextHandler
- setContextPath
- 警告: Empty contextPath
- [0m六月 15, 2017 8:32:05 下午 org.eclipse.jetty.server.Server doStart
- 信息: jetty-9.4.z-SNAPSHOT
- 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.webapp.StandardDescriptorProcessor
- visitServlet
- 信息: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
- 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.DefaultSessionIdMana
- ger doStart
- 信息: DefaultSessionIdManager workerName=node0
- 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.DefaultSessionIdMana
- ger doStart
- 信息: No SessionScavenger set, using defaults
- 六月 15, 2017 8:32:07 下午 org.eclipse.jetty.server.session.HouseKeeper startSca
- venging
- 信息: Scavenging every 660000ms
- Jenkins home directory: C:\Users\Administrator\.jenkins found at: $user.home/.je
- nkins
- 六月 15, 2017 8:32:08 下午 org.eclipse.jetty.server.handler.ContextHandler doSta
- rt
- 信息: Started w.@10650953{/,file:///C:/Users/Administrator/.jenkins/war/,AVAILAB
- LE}{C:\Users\Administrator\.jenkins\war}
- 六月 15, 2017 8:32:09 下午 org.eclipse.jetty.server.AbstractConnector doStart
- 信息: Started ServerConnector@3efe7086{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
- 六月 15, 2017 8:32:09 下午 org.eclipse.jetty.server.Server doStart
- 信息: Started @92069ms
- 六月 15, 2017 8:32:09 下午 winstone.Logger logInternal
- 信息: Winstone Servlet Engine v4.0 running: controlPort=disabled
- 六月 15, 2017 8:32:09 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Started initialization
- 六月 15, 2017 8:32:13 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Listed all plugins
- 六月 15, 2017 8:32:21 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Prepared all plugins
- 六月 15, 2017 8:32:22 下午 hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope
- $1 error
- 信息: Failed to instantiate optional component hudson.plugins.build_timeout.oper
- ations.AbortAndRestartOperation$DescriptorImpl; skipping
- 六月 15, 2017 8:32:23 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Started all plugins
- 六月 15, 2017 8:32:23 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Augmented all extensions
- 六月 15, 2017 8:32:29 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Loaded all jobs
- 六月 15, 2017 8:32:29 下午 hudson.model.AsyncPeriodicWork$1 run
- 信息: Started Download metadata
- 六月 15, 2017 8:32:30 下午 hudson.model.AllView migrateLegacyPrimaryAllViewLocal
- izedName
- 信息: JENKINS-38606 detected for AllView in ; renaming view from All to all
- 六月 15, 2017 8:32:30 下午 jenkins.InitReactorRunner$1 onAttained
- 信息: Completed initialization
- 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati
- onContext prepareRefresh
- 信息: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
- text@10793f8b: display name [Root WebApplicationContext]; startup date [Thu Jun
- 15 20:32:31 CST 2017]; root of context hierarchy
- 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati
- onContext obtainFreshBeanFactory
- 信息: Bean factory for application context [org.springframework.web.context.supp
- ort.StaticWebApplicationContext@10793f8b]: org.springframework.beans.factory.sup
- port.DefaultListableBeanFactory@756ec023
- 六月 15, 2017 8:32:31 下午 org.springframework.beans.factory.support.DefaultList
- ableBeanFactory preInstantiateSingletons
- 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.
- DefaultListableBeanFactory@756ec023: defining beans [authenticationManager]; roo
- t of factory hierarchy
- 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati
- onContext prepareRefresh
- 信息: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
- text@271a7b15: display name [Root WebApplicationContext]; startup date [Thu Jun
- 15 20:32:31 CST 2017]; root of context hierarchy
- 六月 15, 2017 8:32:31 下午 org.springframework.context.support.AbstractApplicati
- onContext obtainFreshBeanFactory
- 信息: Bean factory for application context [org.springframework.web.context.supp
- ort.StaticWebApplicationContext@271a7b15]: org.springframework.beans.factory.sup
- port.DefaultListableBeanFactory@1c27e83b
- 六月 15, 2017 8:32:31 下午 org.springframework.beans.factory.support.DefaultList
- ableBeanFactory preInstantiateSingletons
- 信息: Pre-instantiating singletons in org.springframework.beans.factory.support.
- DefaultListableBeanFactory@1c27e83b: defining beans [filter,legacy]; root of fac
- tory hierarchy
- 六月 15, 2017 8:32:33 下午 hudson.WebAppMain$3 run
- 信息: Jenkins is fully up and running
- 六月 15, 2017 8:32:35 下午 hudson.model.UpdateSite updateData
- 信息: Obtained the latest update center data file for UpdateSource default
- 六月 15, 2017 8:32:37 下午 hudson.model.DownloadService$Downloadable load
- 信息: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
- 六月 15, 2017 8:32:38 下午 hudson.model.DownloadService$Downloadable load
- 信息: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
- 六月 15, 2017 8:32:39 下午 hudson.model.DownloadService$Downloadable load
- 信息: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller
- 六月 15, 2017 8:32:41 下午 hudson.model.DownloadService$Downloadable load
- 信息: Obtained the updated data file for hudson.tools.JDKInstaller
- 六月 15, 2017 8:32:41 下午 hudson.model.AsyncPeriodicWork$1 run
- 信息: 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界面。界面如下: