1. 第一步
sudo wget -O /etc/yum.repos.d/jenkins.repohttps://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
2.第二步
sudo yum install jenkins
3. 第三步
service jenkins status | start | stop | restart
systemctl status jenkins.service
4.修改端口
vi /etc/sysconfig/jenkins