Continuous integration of JENKINS+MAVEN+SVN+TOMCAT based on Aliyun (i)--previous preparation and JDK environment variable configuration

Source: Internet
Author: User
Tags svn aliyun
continuous integration of JENKINS+MAVEN+SVN+TOMCAT based on Aliyun (i.) Continuous Integration Preparation and Java environment variable configuration

It 's useless to say something first .

Occasionally have to do the idea of personal blog, but suffer from the company's computer can not run Windows and Linux virtual machine at the same time, the home computer configuration is not enough, so rented the Aliyun server, and the initiation of the idea of building a jenkins+maven+svn+tomcat development environment. So there are some small gains, the previous process to share out. itself is small white, know little white exploration technology is not easy, so the whole process is too detailed, even long-winded, everyone forgive me.

And then the main course . what is Jenkins.

The problem is the last time I wrote the blog when I think of the problem, I was in the beginning of the tangle of this problem, just feel Jenkins tall, but do not know what he is doing. First, let's analyze how Web projects are posted online. At first, we wrote our web apps on our local IDE software, using the local Tomcat run project, using MAVEN to manage all of our project jar files, using SVN to submit code, and we developed together, Finally, the project manager and other people go down our code from SVN down the latest version, packaged into a war, and then thrown into the server in the Tamcat run, eventually our web program on any computer through the server's public network IP can be accessed. In fact, what Jenkins does is what the above mentioned project manager and others do. (Of course, Jenkins can do more than this, but novice Xiao Bai know so much enough to digest my blog, for you to open the world of Jenkins.) ) 1, preparation before configuration

Aliyun server: CentOS System 64-bit

file name Download Web site
Jdk Java Downloads
Tomcat (Windows) Tomcat download
Svn SVN downloads
Maven Maven Download
Jenkins.war Jenkins download

(Note: Download the file is the best unified file type, I choose the tar.gz type of file, so decompression time does not need to change the command, convenient operation.) And the author's computer system is 64-bit, so I downloaded the package is based on 64-bit system. )
Download the good file as follows:
2. Upload and prepare files to Aliyun server

Use the XFTP software to connect to the server, uploading JDK, Tomcat, MAVEN files to the server root directory.

After uploading, use the command to view the file

It can be seen that our files have been uploaded successfully. 3. Install Java

Extract Java: Use command (tar xzvf filename-C to specify path)
-Represents a parameter
X indicates decompression
Z means using zip compression
V indicates output decompression process
f Specifies the extracted file
We choose to extract to the/usr/local path, after the decompression is completed using the command to view

Rename the JDK folder to Java after locating it

# mv   jdk1.8.0_144   java

Next to JDK configuration (environment variables)
Enter/etc directory, modify profile file

Append at the end of the file

Java_home=/usr/local/java
jre_home=/usr/local/java/jre
path= $PATH: $JAVA _home/bin: $JRE _home/bin
Classpath=.:java_home/lib/jt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib

After appending,: Wq save exit. Use the command to view the JDK version, and the Java configuration is successful with the version number.

# java-version

(To be continued)
See below: Continuous integration of JENKINS+MAVEN+SVN+TOMCAT based on Aliyun (ii)-tomcat, SVN, Maven installation

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.