1,准备环境
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
操作系统centos 7
关闭防火墙
jdk 1.8 版本系列
安装包https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.277.4-1.1.noarch.rpm
2,部署jenkins
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.277.4-1.1.noarch.
rpm -ivh jenkins-2.277.4-1.1.noarch.rpm
查找java 路径
[root@localhost ~]# which java
/usr/local/jdk1.8.0_301/bin/java
添加java 路径
[root@localhost ~]# vim /etc/sysconfig/jenkins
candidates="
/usr/local/jdk1.8.0_301/bin/java
"
启动Jenkins
systemctl start jenkins
浏览器打开http:192.168.144.128:8080 输入路径里的密码 确定等待加载配置
登录进去千万别更新了,除非必要