jenkins官方版本安装太慢,使用国内源加速安装

创建jenkins安装目录

[root@localhost ~]# mkdir /opt/jenkins -p
[root@localhost ~]# cd /opt/jenkins/

使用清华大学地址下载Jenkins

root@localhost jenkins]# wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/latest/jenkins.war
--2020-03-16 11:40:45--  https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/latest/jenkins.war
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.8.193, 2402:f000:1:408:8100::1
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.8.193|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66128908 (63M) [application/java-archive]
Saving to: ‘jenkins.war’

jenkins.war                             100%[=============================================================================>]  63.07M  3.66MB/s    in 16s     

2020-03-16 11:41:08 (3.98 MB/s) - ‘jenkins.war’ saved [66128908/66128908]

创建日志目录

[root@localhost jenkins]# mkdir logs 
[root@localhost jenkins]# 

创建启动脚本

[root@localhost jenkins]# vim startup.sh
#!/bin/bash
export JENKINS_HOME=/opt/jenkins
cd $JENKINS_HOME
nohup java -Dhudson.model.DownloadService.noSignatureCheck=true -Xmx2g -jar jenkins.war --httpPort=9090 > logs/jenkins.log 2>&1 &
tail -f logs/jenkins.log

创建hudson.model.UpdateCenter.xml

 vim hudson.model.UpdateCenter.xml
<?xml version='1.1' encoding='UTF-8'?>
<sites>
        <site>
        <id>default</id>
        <url>https://updates.jenkins-zh.cn/update-center.json</url>
</site> 

速度6得飞起

 

 

做好的成品包地址

https://download.csdn.net/download/hknaruto/12629890

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值