Install Jenkins under Linux (Red Hat)

Source: Internet
Author: User

Jenkins installation can be divided into online installation and download software Local installation, I use the second method, the download is an application directly click on the installation can, and so on after the installation of the JDK path is OK! The following is a detailed explanation:

A. Prerequisites

1. Be sure to install the JDK before installing Jenkins, which is installed on the server jdk1.8

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

two. Installation

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

2. Double-click Install, follow the Prompts wizard step by step installation can be

three. Configuration

1. The service that starts Jenkins after installation may prompt the following failure message,

The error is as follows:

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

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 its path, for example:


2. After the installation is complete, if it conflicts with the local port, you need to modify the port number of Jenkins. Such as:

Cd/etc/sysconfigvim Jenkins

Such as:

jenkins_port= "8080" jenkins_ajp_port= "8009"

Go in and modify the port number (note that after the modification is complete, the configuration in Jenkens is performed via the source command.

Command:

Source/etc/sysconfig/jenkens)

Four. Start

Server to start 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.