美文网首页
CENTOS7安装jenkins

CENTOS7安装jenkins

作者: 张龙象 | 来源:发表于2017-12-14 23:43 被阅读0次

    1.添加jenkins的yum源,安装jenkins
    sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
    sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
    sudo yum install jenkins
    2.安装java
    yum install java
    3.启动jenkins
    sudo service jenkins start/stop/restart
    sudo chkconfig jenkins on
    4.添加防火墙放行jenkins规则
    firewall-cmd --zone=public --add-port=8080/tcp --permanent
    firewall-cmd --zone=public --add-service=http --permanent
    firewall-cmd --reload
    5.浏览器打开jenkins地址
    http://server-ip:8080

    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    curl -o /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
    sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
    yum install java jenkins -y
    service jenkins start
    chkconfig jenkins on
    setenforce 0
    systemctl start firewalld
    firewall-cmd --zone=public --add-port=8080/tcp --permanent
    firewall-cmd --zone=public --add-service=http --permanent
    firewall-cmd --reload

    相关文章

      网友评论

          本文标题:CENTOS7安装jenkins

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