Jenkins server Installation

来源:互联网 发布:华东理工大学 知乎 编辑:程序博客网 时间:2024/05/16 07:16

from the    https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service#InstallingJenkinsasaWindowsservice-InstallSlaveasaWindowsservice%28require.NET2.0framework%29

and http://www.cnblogs.com/itech/archive/2011/11/02/2233343.html

All the following steps are according to the wiki about jenkins.

1. install  the Jenkins, input the website "mirrors.jenkins-ci.org/war/latest/jenkins.war",then got the jenkins.war.

2.we assumed that you've got installed the jre, open the "cmd" ,input java -version to test if you have installed that.

3. in the cmd ,input java -jar jenkins.war ,make sure that jenkins.war can be found correctly, whicn means may be you can cd to the directory of jenkins.war.

4.wait for the a miniutes, after the jenkins is open,make sure the following words show up.

c:\jenkins>java -jar jenkins.war
Running from: C:\jenkins\jenkins.war
webroot: $user.home/.jenkins
[Winstone 2011/11/02 17:11:27] - Beginning extraction from war file
Jenkins home directory: C:\Users\AAA\.jenkins found at: $user.home/.jenkins
[Winstone 2011/11/02 17:12:57] - HTTP Listener started: port=8080
[Winstone 2011/11/02 17:12:57] - AJP13 Listener started: port=8009
[Winstone 2011/11/02 17:12:58] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Nov 02, 2011 5:12:58 PM jenkins.model.Jenkins$6 onAttained
INFO: Started initialization
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Listed all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Prepared all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Started all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Augmented all extensions
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Loaded all jobs
Nov 02, 2011 5:13:04 PM jenkins.model.Jenkins$6 onAttained
INFO: Completed initialization
Nov 02, 2011 5:13:04 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 37157
Nov 02, 2011 5:13:14 PM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running

5. visit the http://localhost:8080 or IP:8080 (example : 9.119.44.121:8080)




NOTE: The "Install as Windows Service" link indicated above will not appear if Jenkins is already running as a service on the machine. You can verifying that Jenkins is running as a service by launching the Services app from the Windows Start Menu and looking for a running service called "jenkins" among the list of all windows services running on the machine.

6.Clicking this link shows you the installation screen:

7.Choose the directory where Jenkins shall be installed (directory must already exist. If not create it before hand). This will becomeJENKINS_HOME and used to store data files and programs alike.
Upon successful completion of the installation, you should see a page asking you to restart Jenkins.

8.This is to re-launch Jenkins as a newly installed Windows service. When you click yes, you'll be asked to wait until the restart completes:





0 0