CentOS7安装Jenkins



安装jdk环境:

yum search jdk

CentOS7.6安装Jenkins_java


装 1.8版本的:yum install -y java-1.8.0-openjdk

CentOS7.6安装Jenkins_java_02

CentOS7.6安装Jenkins_java_03


安装Jenkins

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

CentOS7.6安装Jenkins_java_04


rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

CentOS7.6安装Jenkins_80端口_05


yum install -y jenkins --nogpgcheck

CentOS7.6安装Jenkins_80端口_06


service jenkins start/stop/restart

CentOS7.6安装Jenkins_java_07

查看进程:ps -ef | grep jenkins

CentOS7.6安装Jenkins_80端口_08


开放8080端口

firewall-cmd --add-port=8080/tcp --permanent

CentOS7.6安装Jenkins_重启_09

firewall-cmd --reload

CentOS7.6安装Jenkins_java_10

firewall-cmd --permanent --query-port=8080/tcp

CentOS7.6安装Jenkins_重启_11


输入ip:8080访问,等待加载完成

CentOS7.6安装Jenkins_重启_12


cat查看密码:cat /var/lib/jenkins/secrets/initialAdminPassword

CentOS7.6安装Jenkins_java_13


填入密码,继续

CentOS7.6安装Jenkins_java_14

选择安装推荐的插件

CentOS7.6安装Jenkins_80端口_15

装插件界面

CentOS7.6安装Jenkins_80端口_16

创建用户,admin/123456,后面的一直下一步,就可以到首页

CentOS7.6安装Jenkins_java_17

实例配置,配置域名比如xxx.xxx.com,这里不用配置,直接用默认的,保存并完成

CentOS7.6安装Jenkins_80端口_18

开始使用Jenkins

CentOS7.6安装Jenkins_重启_19


如果出现登录后页面空白的情况

CentOS7.6安装Jenkins_java_20

浏览器访问8080/pluginManager/advanced

CentOS7.6安装Jenkins_80端口_21


将页面下拉到底部将升级站点的https改为http之后提交

 CentOS7.6安装Jenkins_80端口_22

重启jenkins

方法一:8080/restart

方法二:service jenkins restart

CentOS7.6安装Jenkins_80端口_23

重启中

CentOS7.6安装Jenkins_重启_24


进入主界面

CentOS7.6安装Jenkins_80端口_25





安装jdk环境:

yum search jdk

CentOS7.6安装Jenkins_java


装 1.8版本的:yum install -y java-1.8.0-openjdk

CentOS7.6安装Jenkins_java_02

CentOS7.6安装Jenkins_java_03


安装Jenkins

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

CentOS7.6安装Jenkins_java_04


rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

CentOS7.6安装Jenkins_80端口_05


yum install -y jenkins --nogpgcheck

CentOS7.6安装Jenkins_80端口_06


service jenkins start/stop/restart

CentOS7.6安装Jenkins_java_07

查看进程:ps -ef | grep jenkins

CentOS7.6安装Jenkins_80端口_08


开放8080端口

firewall-cmd --add-port=8080/tcp --permanent

CentOS7.6安装Jenkins_重启_09

firewall-cmd --reload

CentOS7.6安装Jenkins_java_10

firewall-cmd --permanent --query-port=8080/tcp

CentOS7.6安装Jenkins_重启_11


输入ip:8080访问,等待加载完成

CentOS7.6安装Jenkins_重启_12


cat查看密码:cat /var/lib/jenkins/secrets/initialAdminPassword

CentOS7.6安装Jenkins_java_13


填入密码,继续

CentOS7.6安装Jenkins_java_14

选择安装推荐的插件

CentOS7.6安装Jenkins_80端口_15

装插件界面

CentOS7.6安装Jenkins_80端口_16

创建用户,admin/123456,后面的一直下一步,就可以到首页

CentOS7.6安装Jenkins_java_17

实例配置,配置域名比如xxx.xxx.com,这里不用配置,直接用默认的,保存并完成

CentOS7.6安装Jenkins_80端口_18

开始使用Jenkins

CentOS7.6安装Jenkins_重启_19


如果出现登录后页面空白的情况

CentOS7.6安装Jenkins_java_20

浏览器访问8080/pluginManager/advanced

CentOS7.6安装Jenkins_80端口_21


将页面下拉到底部将升级站点的https改为http之后提交

 CentOS7.6安装Jenkins_80端口_22

重启jenkins

方法一:8080/restart

方法二:service jenkins restart

CentOS7.6安装Jenkins_80端口_23

重启中

CentOS7.6安装Jenkins_重启_24


进入主界面

CentOS7.6安装Jenkins_80端口_25




安装jdk环境:

yum search jdk

CentOS7.6安装Jenkins_java


装 1.8版本的:yum install -y java-1.8.0-openjdk

CentOS7.6安装Jenkins_java_02

CentOS7.6安装Jenkins_java_03


安装Jenkins

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

CentOS7.6安装Jenkins_java_04


rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

CentOS7.6安装Jenkins_80端口_05


yum install -y jenkins --nogpgcheck

CentOS7.6安装Jenkins_80端口_06


service jenkins start/stop/restart

CentOS7.6安装Jenkins_java_07

查看进程:ps -ef | grep jenkins

CentOS7.6安装Jenkins_80端口_08


开放8080端口

firewall-cmd --add-port=8080/tcp --permanent

CentOS7.6安装Jenkins_重启_09

firewall-cmd --reload

CentOS7.6安装Jenkins_java_10

firewall-cmd --permanent --query-port=8080/tcp

CentOS7.6安装Jenkins_重启_11


输入ip:8080访问,等待加载完成

CentOS7.6安装Jenkins_重启_12


cat查看密码:cat /var/lib/jenkins/secrets/initialAdminPassword

CentOS7.6安装Jenkins_java_13


填入密码,继续

CentOS7.6安装Jenkins_java_14

选择安装推荐的插件

CentOS7.6安装Jenkins_80端口_15

装插件界面

CentOS7.6安装Jenkins_80端口_16

创建用户,admin/123456,后面的一直下一步,就可以到首页

CentOS7.6安装Jenkins_java_17

实例配置,配置域名比如xxx.xxx.com,这里不用配置,直接用默认的,保存并完成

CentOS7.6安装Jenkins_80端口_18

开始使用Jenkins

CentOS7.6安装Jenkins_重启_19


如果出现登录后页面空白的情况

CentOS7.6安装Jenkins_java_20

浏览器访问8080/pluginManager/advanced

CentOS7.6安装Jenkins_80端口_21


将页面下拉到底部将升级站点的https改为http之后提交

 CentOS7.6安装Jenkins_80端口_22

重启jenkins

方法一:8080/restart

方法二:service jenkins restart

CentOS7.6安装Jenkins_80端口_23

重启中

CentOS7.6安装Jenkins_重启_24


进入主界面

CentOS7.6安装Jenkins_80端口_25