Jenkins actual Combat Jenkins installation Deployment (i)

Source: Internet
Author: User

"The content described in this document is intended for common Jenkins application environment deployments such as daily test/production environments"

Since the installation of Jenkins is running in a Java environment, it is necessary to deploy Java-related environments before installation

One: Prepare the Java environment before deployment:

1.1 Related software and systems

System Requirements: Centos 6.0 (above) (64-bit)

Related middleware: jdk1.7.0_71, apache-tomcat7.0

1.2 Downloads related software such as JDK and tomcat,jenkins

Download jdk (version jdk1.7.0_71)

wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie"/HTTP/ Download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.tar.gz

Download Apache-tomcat (version 7.0.64)

wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz

Download the Jenkins software package (version of LTS latest edition, here for 2.7.2)

wget Http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war

II: Deploying the Java Environment

2. 1 deployment JDK to support the Java environment (note that all downloads are uniformly placed in the/root root directory)

< unzip---JDK package--->

$ cd ~

$ TAR-ZXF jdk-7u71-linux-x64.tar.gz-c/usr/local/

<---Add a JDK environment variable--->

Vim/etc/profile//Edit System environment variables

$ java_home=/usr/local/jdk1.7.0_71
$ path= $JAVA _home/bin: $PATH
$ classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
$ Export Java_home
$ Export PATH
$ Export CLASSPATH

Note Do not forget to reload the environment variable after adding the environment variable: source/etc/profie

2.2 Deployment of Tomcat

$ CD ~ 
$ wget http://mirror.bit.edu.cn/apache/tomcat/ Tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz
$ tar-zxf apache-tomcat-7.0.64.tar.gz-c/usr/local/
$ cd/ Usr/local
$ mv  apache-tomcat-7.0.64 tomcat8080

II: Deploying Jenkins

2.1 There are two ways to deploy Jenkins, one is to extract the Jenkins.war package using Java's own commands, and the other is to give it to Tomcat to decompress the deployment, which uses Tomcat to decompress the deployment, as follows:

$ cd ~
$ wget Http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war
$ CP jenkins.war/usr/local/tomcat8080
$ cd/usr/local/tomcat8080

2.2 Visit Http://ip:8080/jenkins and start installing Jenkins as shown below:

The first time you install Jenkins, you will be prompted to enter the installation password, follow the prompts to paste the password into the corresponding input mad, that is:


27853126e8e748a89f29aba41d315554

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/CB/wKiom1fK7A6RBs0IAACVh2q9ASg533.png "style=" width : 720px;height:404px; "Title=" Jenkins. PNG "width=" 720 "height=" 404 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" wkiom1fk7a6rbs0iaacvh2q9asg533.png "/>

Select confirm and proceed to the next step as follows:

The installation type is indicated here, the first option is: Universal installation, the second is: Custom installation, this is a universal installation

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/86/CB/wKioL1fK7A7S7lnmAAEK7c0MnVw729.png "style=" width : 720px;height:404px; "title=" jenkins1. PNG "width=" 720 "height=" 404 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" wkiol1fk7a7s7lnmaaek7c0mnvw729.png "/>

Here you choose to install for the universal installation, that is, the first way, as follows:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/86/CB/wKiom1fK7A_QqBeAAACzhDF_7ME357.png "style=" width : 720px;height:402px; "title=" jenkins2. PNG "width=" 720 "height=" 402 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" wkiom1fk7a_qqbeaaaczhdf_7me357.png "/>

Note : Due to the first installation, the relevant plug-in installation needs to be downloaded to the Internet, so the waiting time is longer, after the successful installation of the interface as follows:



After installation, if the page does not jump, need to re-refresh, login account, during the installation process, you may find that some plug-in installation failed, we need to login to Jenkins to the plug-in management interface, choose to install the required plug-in or uninstall the unwanted plug-in, as follows:

This article is from the "Rookie Growth" blog, please be sure to keep this source http://blief.blog.51cto.com/6170059/1846017

Jenkins actual Combat Jenkins installation Deployment (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.