Jenkins, which has been used for a long time, needs to be redeployed on a different server, and the setup process is documented. Linux operating system: CentOS

Add Jenkins package source
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo`
Import the public key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
Jenkins installation package
sudo yum install jenkins -y
Modify the Jenkins configuration

/etc/sysconfig/jenkins: /etc/sysconfig/jenkins: /etc/sysconfig/jenkins: 8080 /etc/init.d/ Jenkins = /etc/init/jenkins = /etc/init/jenkins = /etc/init/jenkins = /etc/init/jenkins = /etc/init/jenkins

Start the Jenkins service

Systemctl enable kenins systemctl start Jenkins systemctl start Jenkins systemctl stop Jenkins

Log on to the Jenkins page and entercat /var/lib/jenkins/secrets/initialAdminPasswordView password -> login.

Then you can install your own plug-ins according to your needs. It is recommended to install the default plug-ins, including Git, SSH, LDAP, Ant, etc.