前端部署jenkins


1. yum install java(已安装过请忽略这一步,java -version)

2. yum源导入

  添加Yum源

  sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
  导入密钥

  sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

  安装
  sudo yum install -y jenkins

  jenkins包下载:http://mirrors.jenkins.io/war-stable/latest/jenkins.war或者https://updates.jenkins-ci.org/download/war/

3. 设置开机自启动:chkconfig jenkins on

4. 启动jenkins:systemctl start jenkins(默认端口:8080)

5. ip+端口号打开jenkins配置页面,cat /var/lib/jenkins/secrets/initialAdminPassword,找到密码进行粘贴,选择推荐的进行安装。

6. 卸载Jenkins: http://www.mamicode.com/info-detail-3002528.html

参考链接:https://juejin.im/post/5ad1980e6fb9a028c42ea1be#heading-5