How to install Jenkins on CentOS

Jenkins is an open source continuous integration tool written in Java. It can be installed directly on CentOS through the yum command line. Record the installation process for future search. You need to install Java first. If you already have Java, you can skip this step.

Install Java

See the command of the Java version of the current system:

If the Java version number is displayed, it indicates that it has been installed correctly. If the command is not displayed, you need to install Java:

If the command detects that Java does not exist, you can directly install Java. If it already exists, you can upgrade Java.

Install Jenkins

First, add Jenkins source:

After adding, install Jenkins directly using the yum command:

Start Jenkins

Start Jenkins with the command:

Enter http: / / < server IP >: 8080 / in the browser to enter the Jenkins interface for direct use.

The command to stop Jenkins service is:

Related configuration

Jenkins installation directory:

Jenkins profile address:

This is the Jenkins configuration file. You can view the default Jenkins configuration here.

cat jenkins

Here are three important configurations:

JENKINS_ Home is the main directory of Jenkins. The working directory of Jenkins is put here. The address where Jenkins stores files, Jenkins plug-ins and generated files are in this directory.

JENKINS_ User is a user of Jenkins and owns $Jenkins_ Permissions for home and / var / log / Jenkins.

JENKINS_ Port is the port of Jenkins. The default port is 8080.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>