1.访问jenkins官网:https://www.jenkins.io/
2.选择linux--centos:
3.依次执行下列命令:执行过程可能会报错,重复执行几次;
wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum upgrade
yum install epel-release java-11-openjdk-devel
yum install jenkins
systemctl daemon-reload
4.启动jenkins:
systemctl start jenkins
5.浏览器访问jenkins:输入ip:8080即可