Jin Yong Martial Arts "non-toxic palm"---jenkins installation deployment

Source: Internet
Author: User

I. Environmental preparedness

Centos7.2mini SELinux shutdown Firewall off

Two. JDK Installation

Installation method: RPM installation software: jdk-7u80-linux-x64.rpm
View JDK Information further: [[email protected] ~]# Rpm-qa | grep javatzdata-java-2012c-1.el6.noarchjava-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64 Uninstalls OpenJDK and does the following: [[ Email protected] ~]# rpm-e--nodeps tzdata-java-2012c-1.el6.noarch[[email protected] ~]# rpm-e--nodeps Java-1.6.0-openj dk-1.6.0.0-1.45.1.11.1.el6.x86_64 Install the JDK to upload the new jdk-7u80-linux-x64.rpm software to/USR/LOCAL/SRC to perform the following actions:


[Email protected] local]# RPM-IVH jdk-7-linux-x64.rpm

[Email protected] maven]# java-version

Java Version "1.7.0_80"

Java (TM) SE Runtime Environment (build 1.7.0_80-b15)

Java HotSpot (TM) 64-bit Server VM (build 24.80-b11, Mixed mode)


Congratulations, the installation is successful! My machine does not configure environment variables to perform JAVAC, java –version operations after installing jdk-7u80-linux-x64.rpm, so I do not configure the JDK environment variable. But for the sake of future discomfort, here is still a record how to configure, operation as follows:  modify the system environment variable file vi   /etc/profile     Append the following content to the file: java_home=/usr/java/jdk1.7.0_80jre_home=/usr/java/jdk1.7.0_80/jrepath= $PATH: $JAVA _home/bin: $JRE _ Home/binclasspath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libexport java_home jre _home path classpath     make the changes effective [[Email protected] local]# source  /etc/profile   //make changes effective immediately  [[email protected] local]# echo  $PATH    //View Path Value      View system environment Status [[email protected] ~]# echo $ path/usr/local/cmake/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/ Usr/java/jdk1.7.0_80/bin:/usr/java/jdk1.7.0_80/jre/bin:/root/bin three. Maven Installation tar-xvzf  apache-maven-3.3.2-bin.tar.gz  -c /usr/local/srcmv /apache-maven-3.3.2 /usr/local/mavenvi   /etc/profilemaven_home=/usr/local/ Mavenpath= $PATH: $MAVEN _home/binexport path maven_homesource /etc/profile  four. Installation antcd / Usr/local/srctar -zxvf apache-ant-1.9.6-bin.tar.gzmv apache-ant-1.9.6 /usr/local/antvim  /etc/profile Add the following: ant_home=/usr/local/antpath= $PATH: $ANT _home/binexport path ant_home  source /etc/profile   Five. Install and start jenkinscd /usr/local/srcrpm -ivh  Jenkins-1.651.3-1.1.noarch.rpmservice jenkins start Visit Jenkins


















Jin Yong Martial Arts "non-toxic palm"---jenkins installation deployment

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.