Jenkins总结

1)centos安装Jenkins

  • wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.107.3-1.1.noarch.rpm
  • rpm -ivh jenkins-2.107.3-1.1.noarch.rpm
  • service start jenkins

或者是(很慢):
      1 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
      2 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
      3 yum install -y jenkins

如果出现:jenkins启动一直显示 Jenkins正在启动,请稍后... 的问题   则

  1. 修改:/var/lib/jenkins/updates/default.json 将www.google.com 改为 www.baidu.com
  2. 修改:/var/lib/jenkins/hudson.model.UpdateCenter.xml   把http://updates.jenkins-ci.org/update-center.json改成http://mirror.xmission.com/jenkins/updates/update-center.json
  3. VM01上Jenkins的用户名密码:admin 、123456

 

posted @ 2019-04-28 00:26  TonyHuang123  阅读(231)  评论(0编辑  收藏  举报