美文网首页
Centos7 安装 Jenkins

Centos7 安装 Jenkins

作者: 风暴白熊 | 来源:发表于2016-03-02 17:23 被阅读1098次

    安装

    sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
    sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
    sudo yum install jenkins
    

    启动应用

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

    如果出现Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details.[FAILED]错误.需要修改配置文件.

    修改配置

    sudo vim /etc/init.d/jenkins
    

    for candidate in $candidates 路径后添加java路径/usr/local/application/java7/bin/java.

    相关文章

      网友评论

          本文标题:Centos7 安装 Jenkins

          本文链接:https://www.haomeiwen.com/subject/trpnkttx.html