1. 安装Jenkins
1.java 环境变量准备
https://blog.csdn.net/weixin_45071330/article/details/129105063
2.Jenkins的安装
2.1下载Jenkins的rpm包
目前最新版本2.346.3
安装jenkins2.346.3
通过rpm包安装Jenkins
# 通过清华大学源来安装,因为国外速度太慢。
[root@localhost ~]# wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat/jenkins-2.346-1.1.noarch.rpm --no-check-certificate
2.2关闭防火墙selinux
[root@localhost /]# setenforce 0
[root@localhost ~]# systemctl stop firewalld && systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
一定要确保字符集为 LANG=