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

centos下安装jenkins

时间:2016-11-29 07:31:09      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:上传   日志   arch   install   登录   das   down   密码   color   

1、去jenkins官网下载最新版本的rpm安装包,https://jenkins.io/index.html

    jenkins-2.7.4-1.1.noarch.rpm

 

2、安装JDK

    yum install java-1.8.0-openjdk.x86_64

 

3、安装jenkins

    rpm -ivh jenkins-2.7.4-1.1.noarch.rpm

 

4、启动jenkins

    service jenkins start

5、查看jenkins日志

    tail -f /var/log/jenkins/jenkins.log

首次启动时会在日志中输出默认密码:


*************************************************************
*************************************************************
*************************************************************

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

c9e349eb4ead4a99bb478fcc0af301ea

This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

6、在浏览器中打开:http://xx.xx.xx.xx:8080

7、按照向导安装插件。国内可能安装不了,需要手工去下载插件:http://updates.jenkins-ci.org/download/plugins/

    先登录,然后点击:系统管理---插件管理—高级---找到”上传插件”

    上传插件时,如果失败,查看具体原因,一般都是依赖项不存在导致的,按照提示先把依赖的其他插件挨个安装好就行了。

8、结束。

 

centos下安装jenkins

标签:上传   日志   arch   install   登录   das   down   密码   color   

原文地址:http://www.cnblogs.com/lavezhang/p/6112074.html

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