Jenkins is an open source software project. It is a continuous integration tool based on Java developed to monitor continuous repetitive work. It aims to provide an open and easy-to-use software platform that makes continuous software integration possible.
Operating system: centos 7.6
Install epel first
yum install -y vim wget epel-release
Then install jdk1.8
yum install java-1.8.0-openjdk
View version
# java -version
openjdk version "1.8.0_102"OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
Install the LTS version of jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum -y install jenkins
cat /etc/sysconfig/jenkins | more
Several important configuration item information can be obtained
JENKINS_HOME="/var/lib/jenkins"
, store jenkins configuration and working files JENKINS_PORT="8080"
, JENKINS default port 8080This location is important
ls /var/lib/jenkins
There are several folders and files such as jobs
, logs
, and plugins
. Do not delete randomly
This time I mainly looked at the plugins
folder, all plugins are in it, such as the plugin ssh-slaves
, there will be a ssh-slaves
folder and ssh-slaves.jpi
.
When a plug-in is not installed successfully, there will be a file ending with .tmp
Two positions related to logs:
There are logs in /var/lib/jenkins/logs
, but it seems that there is nothing recorded for the time being. I will follow up later. /var/log/jenkins/jenkins.log
, logs plug-in installation and other logs, the reason for the failure information is very clear, importantStart service
service jenkins start
IP address:8080
Follow the prompts, go to /var/lib/jenkins/secrets/initialAdminPassword
, copy and paste in, continue
Recommended by default, the one on the left. The second custom plug-in, if you know what plug-ins are needed, what are the plug-ins, then choose custom
If it is normal, nothing to say. If like this, some plugins fail, refresh the page, and the next step. The failed plug-in will be installed later.
Reference link for this article:
https://www.cnblogs.com/lianstyle/p/8778244.html
Recommended Posts