1、安装
yum install -y java-1.8.0-openjdk* -y
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.235.5-1.1.noarch.rpm
rpm -ivh jenkins-2.235.5-1.1.noarch.rpm
2、修改配置
vim /etc/sysconfig/jenkins
JENKINS_USER="root"
JENKINS_PORT="8080"
3、启动
systemctl start Jenkins
systemctl enable Jenkins
4、登陆安装插件
5、更换插件下载源
#页面操作
##服务器操作
sed -i 's/updates.jenkins-ci.org/download/mirrors.tuna.tsinghua.edu.cn/jenkins/g' /var/lib/jenkins/updates/default.json
sed -i 's#www.google.com#www.baidu.com#g' /var/lib/jenkins/updates/default.json
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
6、重启后生效
systemctl restart jenkins
7、下载中文插件