Jenkins installation on CentOS

Source: Internet
Author: User

Jenkins installation on CentOS

1. Add the source of Jenkins (repository):

$ sudo wget-o/etc/yum.repos.d/jenkins.repo Http://jenkins-ci.org/redhat/jenkins.repo

$ sudo rpm--import Http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

2. Install / check the JDK:

$ java–version

[Email protected] ~]# java-version

Java Version "1.8.0_40"

Java (TM) SE Runtime Environment (BUILD1.8.0_40-B26)

Java HotSpot (TM) 64-bit Server VM (build25.40-b25, Mixed mode)

3. Install Jenkins:

$ sudo yum install Jenkins

After the installation is complete, the following directories are relevant:

(3.1)/usr/lib/jenkins/:The Jenkins installation directorywhere the WAR pack will be placed.

[Email protected] ~]# ls-rlt/usr/lib/jenkins/

Total 64964

-rw-r--r--1 root root 66519999 Apr 2107:50 Jenkins.war

(3.2)/etc/sysconfig/jenkins:Jenkins config file, "port", "jenkins_home" and so on can be configured here.

(3.3)/var/lib/jenkins/: The default jenkins_home.

(3.4)/var/log/jenkins/jenkins.log:Jenkins log file.

4. Start Jenkins

$ sudo service Jenkins start

An error may occur: " Startingjenkins-bash:/usr/bin/java:no Such file or directory". Indicates that Jenkins could not find Java.

this will require "vi/etc/init.d/jenkins", Add the Java path ( as follows ):

5. sign in to Jenkins

If there is no specially configured port, log in to Jenkins using http://<ipaddress>:8080/and configure it (plug-in installation, permissions configuration,view/job Creation, and so on).



Jenkins installation on CentOS

Related Article

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.