如果想从头学起Jenkins的话,可以看看这一系列的文章哦
https://www.cnblogs.com/poloyy/category/1645399.html
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
https://pkg.jenkins.io/redhat-stable/
注意:若之前已从Jenkins导入过密钥,“rpm--import”将失败,请忽略,继续执行下面
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install -y jenkins
rpm -ql jenkins
vim /etc/sysconfig/jenkins
JENKINS_PORT="端口号"
systemctl start jenkins.service
systemctl status jenkins.service
#rpm卸载
rpm -e jenkins
#检查是否卸载成功
rpm -ql jenkins
find / -iname jenkins | xargs -n 1000 rm -rf
find / -iname .jenkins | xargs -n 1000 rm -rf