在CentOS上部署Jenkins需要满足以下条件:
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i "s/.*selinux=.*/selinux=disabled/g" /etc/selinux/config
hostnamectl set-hostname jenkinshostnamectl set-hostname gitlab
sudo yum update -y
sudo yum install java-1.8.0-openjdk -y
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins-ci.org/redhat-stable/jenkins.io.key
sudo yum install jenkins -y
sudo systemctl start jenkins
sudo systemctl enable jenkins
admin
和 admin
。通过满足上述要求和步骤,您可以在CentOS系统上成功安装和配置Jenkins。如果在安装过程中遇到问题,建议查阅Jenkins的官方文档或寻求社区的帮助。