Install Jenkins under Linux (Red Hat)

Source: Internet
Author: User

The installation of Jenkins can be divided into online installation and download software for local installation. I use a different method here, after downloading it is an application directly click Install will be able. After installation, configure the path of the JDK OK! The following is a specific explanation:

A. Prerequisites

1. Be sure to install the jdk,server on the jdk1.8 before installing Jenkins

2. Download the installation kit for Jenkins (official website). I'm using: jenkins-1.617-1.1.noarch.rpm.

two. Installation

1. Extract the downloaded installation package to the folder you want to install

2. Double-click on the installation, according to the prompt wizard step-by-step installation can

three. Configuration

1. The service that starts Jenkins after installation may be presented with a demo sample such as the following failure information,

Errors such as the following:

Starting Jenkins Bash:/usr/bin/java: No that file or folder

Don't worry. The error is caused by not finding the JDK path to Java, then you need to configure the JDK's path strength to Jenkins

Command:

Cd/etc/init.dvim Jenkins
After you enter the above command, edit the path. For example, with:


2. After installation, assuming that the port conflict with the local, you need to change the port number Jenkins. Such as:

Cd/etc/sysconfigvim Jenkins

Such as:

jenkins_port= "8080" jenkins_ajp_port= "8009"

You can change the port number after you go in (notice that the configuration is run through the source command in Jenkens after the change is complete.

Command:

Source/etc/sysconfig/jenkens)

Four. Start

Server that starts Jenkins after configuration is complete

Command:

Service Jenkins Start

Prompt to start successful after entering the local URL in the browser http://localhost:8009 OK!

Install Jenkins under Linux (Red Hat)

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.