码迷,mamicode.com
首页 > 其他好文 > 详细

centos7.2 yum 安装jenkins

时间:2018-09-26 17:07:28      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:默认端口   jenkin   -o   com   sysconf   redhat   hat   分享   centos7   

1、首先安装好Java

yum install -y java
java -version
技术分享图片

2. 获取jenkins安装源文件   

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

3. 导入公钥 (如果报错,多执行几次就好了) 

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

 4. 安装Jenkins

yum install -y jenkins 

5. 配置文件修改( 修改默认端口为8787)

 vim  /etc/sysconfig/jenkins
技术分享图片

 6.启动 

 service jenkins start

7.访问安装 http://{IP地址}:8787

技术分享图片

技术分享图片

技术分享图片

技术分享图片

 


 

        

 

centos7.2 yum 安装jenkins

标签:默认端口   jenkin   -o   com   sysconf   redhat   hat   分享   centos7   

原文地址:https://www.cnblogs.com/wangyong-blog/p/9707715.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!