centos 7 部署jenkins

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

centos 7 部署jenkins

 

 

查找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
"

centos 7 部署jenkins

 

 

启动Jenkins 

 systemctl start jenkins

 

 

浏览器打开http:192.168.144.128:8080    输入路径里的密码  确定等待加载配置

centos 7 部署jenkins

 

 centos 7 部署jenkins

 

登录进去千万别更新了,除非必要

 centos 7 部署jenkins

 

centos 7 部署jenkins

上一篇:Windows下安装Resin及配置详解与发布应用


下一篇:golang ...用法