美文网首页
CentOS7安装jenkins

CentOS7安装jenkins

作者: 扑棱扑棱的小菜鸟 | 来源:发表于2019-10-15 17:47 被阅读0次

    安装

    cd /etc/yum.repos.d/
    wget http://pkg.jenkins.io/redhat/jenkins.repo
    rpm --import http://pkg.jenkins.io/redhat/jenkins.io.key
    yum install -y jenkins
    

    配置JAV运行环境

    /etc/init.d/jenkins 找到/usr/bin/java那一行,在底下加入如下代码:
    /usr/local/jdk1.8.0_221/bin/java
    我的JAVA安装位置 /usr/local/jdk1.8.0_221,JAVA环境搭建教程

    启动

    启动命令:
    service jenkins start
    出现Warning
    Starting jenkins (via systemctl): Warning: jenkins.service changed on disk. Run 'systemctl daemon-reload' to reload units.


    执行
    systemctl daemon-reload
    重启jenkins
    service jenkins restart

    搞定

    jenkins默认端口8080,启动服务后输入ip+端口,看到下面这张图片,搞定收工


    相关文章

      网友评论

          本文标题:CentOS7安装jenkins

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