Jenkins installation
Article Directory
Preface
Tip: I installed and deployed jenkins by myself. There are still many pits, so record:
For example: With the continuous development of artificial intelligence, the technology of machine learning is becoming more and more important. Many people have started learning machine learning. This article It introduces the basic content of machine learning.
Installation Environment
centos7
1. What is Jenkins?
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.
Jenkins features include:
1. Continuous software version release/test project.
2. Monitor the work performed by external calls.
jenkins configuration used in another blog: jenkins configuration usage
Two, installation steps
1.Jenkins installation method
There are three common ways to install jenkins:
1. Download the war package on the official website and deploy it in tomcat
2. Deploy through docker
3. Install through yum install jenkins
To install jenkins, you need to install jdk8 (jdk installation is not written here)
I installed it in the third way
wget -O: Download and save yum's repo with a different file name. There is no Jenkins by default. You need to add the Jenkins repository to yum repos first, and execute the following command:
wget -O /etc/yum.repos.d/jenkins. repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
and execute the following command (didn't figure out what this is for)
rpm --import https://pkg.jenkins.io/redhat- stable/jenkins.io.key
and then install Jenkins
yum install -y jenkins installs the latest by default
Start jenkins and set the boot startup:
systemctl start jenkins
systemctl enable jenkins
modify the port
vi /etc/sysconfig/jenkins
2. Log in to jenkins to configure
a.Access: https://ip address: port number port (default port is 8080)
Check the path on the picture in linux, which is the initial password
cat /var/lib/jenkins/secrets/initialAdminPassword
7ca858730eea46e3b600c4b2a888cad5
b. Install the recommended plug-in (recommended for novices)
c. Wait for the plug-in to install
d. Create user
e. Configuration example
f. The preliminary installation is complete
to sum up
Initial installation completed
Another blog introduces the configuration and use of jenkins: jenkins configuration usage