redhat安装jenkins

安装jenkins:

jenkins与java版本支持:
2.54 (2017-04) and newer: Java 8 1.612 (2015-05) and newer: Java 7 Add the Jenkins repository to the yum repos, and install Jenkins from here. sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo wget https://jenkins-ci.org/redhat/jenkins-ci.org.key sudo rpm --import jenkins-ci.org.key sudo yum install jenkins 

安装java:

检查java版本:
you're using the default (GCJ) version of Java, which will not work with Jenkins java -version java version "1.5.0" gij (GNU libgcj) version 4.4.6 20110731 (Red Hat 4.4.6-3) 安装java: yum remove java yum install java-1.7.0-openjdk 此结果java安装成功: [root@CentOS ~]# java -version java version "1.7.0_95" OpenJDK Runtime Environment (rhel-2.6.4.0.el6_7-i386 u95-b00) OpenJDK Client VM (build 24.95-b01, mixed mode, sharing) 

Start/Stop jenkins:

sudo service jenkins start/stop/restart
sudo chkconfig jenkins on

Note: if you get the following error message, ensure that Java has been installed: Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details. [FAILED]


jenkins老版本rpm包: http://pkg.jenkins-ci.org/redhat-stable/

转载于:https://www.cnblogs.com/Sinjon-Liu/p/8125634.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值