diff --git a/404.html b/404.html index 4458a88..1bb8026 100644 --- a/404.html +++ b/404.html @@ -152,10 +152,10 @@ - + - + diff --git a/anu-comp2310-assignment1/index.html b/anu-comp2310-assignment1/index.html index 4da8cf4..10aae68 100644 --- a/anu-comp2310-assignment1/index.html +++ b/anu-comp2310-assignment1/index.html @@ -89,7 +89,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-01-11-anu-comp2310-assignment1/cover.png);"> + url(//davidz.cn/static/blog/2020-01-11-anu-comp2310-assignment1/cover.png) ">

@@ -634,10 +634,10 @@ $$

- + - + diff --git a/archives/2020/01/index.html b/archives/2020/01/index.html index 297d59b..3768ff7 100644 --- a/archives/2020/01/index.html +++ b/archives/2020/01/index.html @@ -85,8 +85,8 @@ 闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。 ¶原因 -根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。 -这就非常奇怪了,所以我打开了清华源的updat... +根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。 +这就非常奇怪了,所以我打开了清华源的update...

@@ -347,10 +347,10 @@ - + - + diff --git a/archives/2020/02/index.html b/archives/2020/02/index.html index a20856d..41084a6 100644 --- a/archives/2020/02/index.html +++ b/archives/2020/02/index.html @@ -85,8 +85,8 @@ 闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。 ¶原因 -根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。 -这就非常奇怪了,所以我打开了清华源的updat... +根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。 +这就非常奇怪了,所以我打开了清华源的update...

@@ -347,10 +347,10 @@ - + - + diff --git a/archives/2020/index.html b/archives/2020/index.html index db0344c..fe2001f 100644 --- a/archives/2020/index.html +++ b/archives/2020/index.html @@ -85,8 +85,8 @@ 闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。 ¶原因 -根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。 -这就非常奇怪了,所以我打开了清华源的updat... +根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。 +这就非常奇怪了,所以我打开了清华源的update...

@@ -347,10 +347,10 @@ - + - + diff --git a/archives/index.html b/archives/index.html index 775d933..5ec8419 100644 --- a/archives/index.html +++ b/archives/index.html @@ -85,8 +85,8 @@ 闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。 ¶原因 -根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。 -这就非常奇怪了,所以我打开了清华源的updat... +根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。 +这就非常奇怪了,所以我打开了清华源的update...

@@ -347,10 +347,10 @@ - + - + diff --git a/beauty-is-productivity-windows-terminal/index.html b/beauty-is-productivity-windows-terminal/index.html index 2f5317c..50a8583 100644 --- a/beauty-is-productivity-windows-terminal/index.html +++ b/beauty-is-productivity-windows-terminal/index.html @@ -86,7 +86,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-01-31-beauty-is-productivity-windows-terminal/cover.jpg);"> + url(//davidz.cn/static/blog/2020-01-31-beauty-is-productivity-windows-terminal/cover.jpg) ">

@@ -452,10 +452,10 @@ - + - + diff --git a/categories/DevOps/index.html b/categories/DevOps/index.html index 4f5b29d..6a4e12d 100644 --- a/categories/DevOps/index.html +++ b/categories/DevOps/index.html @@ -170,8 +170,8 @@

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

-

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。

-

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用...

+

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。

+

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https...

查看全文 @@ -333,10 +333,10 @@ - + - + diff --git a/categories/Internship/index.html b/categories/Internship/index.html index c7b7643..bbf9340 100644 --- a/categories/Internship/index.html +++ b/categories/Internship/index.html @@ -337,10 +337,10 @@ - + - + diff --git a/categories/Personal/index.html b/categories/Personal/index.html index 406f7e5..8bbfe27 100644 --- a/categories/Personal/index.html +++ b/categories/Personal/index.html @@ -285,10 +285,10 @@ - + - + diff --git a/categories/Productivity/index.html b/categories/Productivity/index.html index 40c0b2a..c685bff 100644 --- a/categories/Productivity/index.html +++ b/categories/Productivity/index.html @@ -387,10 +387,10 @@ $env:SCOOP... - + - + diff --git a/categories/Study/index.html b/categories/Study/index.html index a67e50e..508511b 100644 --- a/categories/Study/index.html +++ b/categories/Study/index.html @@ -280,10 +280,10 @@ - + - + diff --git a/categories/index.html b/categories/index.html index 1cca988..05b0366 100644 --- a/categories/index.html +++ b/categories/index.html @@ -152,10 +152,10 @@ - + - + diff --git a/hello-world/index.html b/hello-world/index.html index d39fd43..5578e8e 100644 --- a/hello-world/index.html +++ b/hello-world/index.html @@ -83,7 +83,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-01-06-hello-world/cover.jpg);"> + url(//davidz.cn/static/blog/2020-01-06-hello-world/cover.jpg) ">

@@ -285,10 +285,10 @@ - + - + diff --git a/index.html b/index.html index 7331cf1..7f9452a 100644 --- a/index.html +++ b/index.html @@ -170,8 +170,8 @@

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

-

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。

-

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用...

+

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。

+

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https...

查看全文 @@ -706,10 +706,10 @@ $env:SCOOP... - + - + diff --git a/inspur-internship/index.html b/inspur-internship/index.html index 87cafc6..55350ea 100644 --- a/inspur-internship/index.html +++ b/inspur-internship/index.html @@ -84,7 +84,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-01-27-inspur-internship/cover.jpg);"> + url(//davidz.cn/static/blog/2020-01-27-inspur-internship/cover.jpg) ">

@@ -465,10 +465,10 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib/) - + - + diff --git a/inspur-ip-guard-uninstallation/index.html b/inspur-ip-guard-uninstallation/index.html index ef337e0..92b4af0 100644 --- a/inspur-ip-guard-uninstallation/index.html +++ b/inspur-ip-guard-uninstallation/index.html @@ -89,7 +89,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-02-11-inspur-ip-guard-uninstallation/cover.svg);"> + url(//davidz.cn/static/blog/2020-02-11-inspur-ip-guard-uninstallation/cover.svg) ">

@@ -393,10 +393,10 @@ C:\WINDOWS\SysWOW64\drivers - + - + diff --git a/jenkins-update-solution-inside-gfw/index.html b/jenkins-update-solution-inside-gfw/index.html index adc0f69..c27860f 100644 --- a/jenkins-update-solution-inside-gfw/index.html +++ b/jenkins-update-solution-inside-gfw/index.html @@ -85,7 +85,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-02-21-jenkins-update-solution-inside-gfw/intro.png);"> + url(//davidz.cn/static/blog/2020-02-21-jenkins-update-solution-inside-gfw/intro.png) ">

@@ -146,7 +146,7 @@

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

原因

下载超时

-

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。

+

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json只加速了下载这个文件的过程,而并没有加速下载插件的过程。

解决方案

那么解决方案就很简单了,我们只需要把/var/jenkins_home/updates/default.json这个文件中的所有

@@ -311,10 +311,10 @@ - + - + diff --git a/kinsing-virus/index.html b/kinsing-virus/index.html index ac4aab2..93b6edd 100644 --- a/kinsing-virus/index.html +++ b/kinsing-virus/index.html @@ -86,7 +86,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-02-10-kinsing-virus/cover.jpg);"> + url(//davidz.cn/static/blog/2020-02-10-kinsing-virus/cover.jpg) ">

@@ -314,10 +314,10 @@ - + - + diff --git a/search.xml b/search.xml index 484ede9..68c76bc 100644 --- a/search.xml +++ b/search.xml @@ -8,7 +8,7 @@ /jenkins-update-solution-inside-gfw/ - 前言

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

原因

下载超时

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json只加速了下载这个文件的过程,而并没有加速下载插件的过程。

解决方案

那么解决方案就很简单了,我们只需要把/var/jenkins_home/updates/default.json这个文件中的所有

http://updates.jenkins-ci.org/download/plugins/

替换成,

https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/

这样就好啦,但是总不能每次都自己手动替换吧,所以有下面这两个稍微复杂一点的自动化解决方案。

方案 1 使用 nginx 重定向

这个方法是参考的jenkins 插件下载加速最终方案

具体我没有试,但是我之前写过 Nginx 的重定向,简单来讲就是遇到官方的地址,就重定向到清华源,配置起来稍微复杂一点。

方案 2 自己搭建 Jenkins Update Center

这个是我自己尝试出来的,原理就是我在服务器上定时(每小时)从清华源下载update-center.json,然后再把里面的 URL 替换成正确的地址,然后对外提供服务。

但是 Jenkins 对于update-center.json的地址有验证,具体验证方法不清楚(我实在是懒的研究了)。

山重水复疑无路,柳暗花明又一村

我在 Jenkins 的 Issue 里面找到一个老哥说验证这个功能可以通过属性参数关闭,于是,这个问题就很简单啦。

hudson.model.DownloadService.noSignatureCheck=true

加上这个属性就好啦。

具体教程

哈,插件全秒!😄

]]> + 前言

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

原因

下载超时

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json只加速了下载这个文件的过程,而并没有加速下载插件的过程。

解决方案

那么解决方案就很简单了,我们只需要把/var/jenkins_home/updates/default.json这个文件中的所有

http://updates.jenkins-ci.org/download/plugins/

替换成,

https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/

这样就好啦,但是总不能每次都自己手动替换吧,所以有下面这两个稍微复杂一点的自动化解决方案。

方案 1 使用 nginx 重定向

这个方法是参考的jenkins 插件下载加速最终方案

具体我没有试,但是我之前写过 Nginx 的重定向,简单来讲就是遇到官方的地址,就重定向到清华源,配置起来稍微复杂一点。

方案 2 自己搭建 Jenkins Update Center

这个是我自己尝试出来的,原理就是我在服务器上定时(每小时)从清华源下载update-center.json,然后再把里面的 URL 替换成正确的地址,然后对外提供服务。

但是 Jenkins 对于update-center.json的地址有验证,具体验证方法不清楚(我实在是懒的研究了)。

山重水复疑无路,柳暗花明又一村

我在 Jenkins 的 Issue 里面找到一个老哥说验证这个功能可以通过属性参数关闭,于是,这个问题就很简单啦。

hudson.model.DownloadService.noSignatureCheck=true

加上这个属性就好啦。

具体教程

哈,插件全秒!😄

]]>
diff --git a/tags/ANU/index.html b/tags/ANU/index.html index a9a46c4..103eee0 100644 --- a/tags/ANU/index.html +++ b/tags/ANU/index.html @@ -281,10 +281,10 @@ - + - + diff --git a/tags/Ada/index.html b/tags/Ada/index.html index 5ccf7c7..d33b6dd 100644 --- a/tags/Ada/index.html +++ b/tags/Ada/index.html @@ -281,10 +281,10 @@ - + - + diff --git a/tags/Cpp/index.html b/tags/Cpp/index.html index 7db69ae..71edac5 100644 --- a/tags/Cpp/index.html +++ b/tags/Cpp/index.html @@ -282,10 +282,10 @@ - + - + diff --git a/tags/Docker/index.html b/tags/Docker/index.html index 445d309..4bc71ab 100644 --- a/tags/Docker/index.html +++ b/tags/Docker/index.html @@ -283,10 +283,10 @@ - + - + diff --git a/tags/Linux/index.html b/tags/Linux/index.html index 18d14ab..f706682 100644 --- a/tags/Linux/index.html +++ b/tags/Linux/index.html @@ -170,8 +170,8 @@

闲来无聊,在家折腾 DevOps,第一步当然是部署一个 Jenkins 啦,然而一顿操作猛如虎,插件一个都下载不下来,总不能给 Jenkins 加个代理吧,所以有了下面这一通折腾。

-

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个国内的源,均无效。

-

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用...

+

根据经验,国外这些软件下载失败基本上都是因为链接不上服务器,换个源就好了。所以简单百度,找到大量相关教程,换了清华源在内的四五个镜像源,均无效。

+

这就非常奇怪了,所以我打开了清华源的update-center.json,仔细看了看,发现了蹊跷之处。原来,这个文件里面基本上所有插件的链接都指向了官网链接http://updates.jenkins-ci.org/download/plugins/。所以我们使用https...

查看全文 @@ -386,10 +386,10 @@ - + - + diff --git a/tags/Markdown/index.html b/tags/Markdown/index.html index a4cd7c2..e428dc2 100644 --- a/tags/Markdown/index.html +++ b/tags/Markdown/index.html @@ -276,10 +276,10 @@ - + - + diff --git a/tags/Open-Source/index.html b/tags/Open-Source/index.html index ed97b94..d00cf74 100644 --- a/tags/Open-Source/index.html +++ b/tags/Open-Source/index.html @@ -341,10 +341,10 @@ $env:SCOOP='path/to/scoop' - + - + diff --git a/tags/Others/index.html b/tags/Others/index.html index 90ad44d..c9ac1cc 100644 --- a/tags/Others/index.html +++ b/tags/Others/index.html @@ -286,10 +286,10 @@ - + - + diff --git a/tags/Shell/index.html b/tags/Shell/index.html index b575cae..91ecc5a 100644 --- a/tags/Shell/index.html +++ b/tags/Shell/index.html @@ -283,10 +283,10 @@ - + - + diff --git a/tags/Terminal/index.html b/tags/Terminal/index.html index a162af1..5752034 100644 --- a/tags/Terminal/index.html +++ b/tags/Terminal/index.html @@ -284,10 +284,10 @@ - + - + diff --git a/tags/Windows/index.html b/tags/Windows/index.html index b09a65a..0731741 100644 --- a/tags/Windows/index.html +++ b/tags/Windows/index.html @@ -496,10 +496,10 @@ $env:SCOOP... - + - + diff --git a/tags/index.html b/tags/index.html index 4406ebe..480fe65 100644 --- a/tags/index.html +++ b/tags/index.html @@ -153,10 +153,10 @@ - + - + diff --git a/whoami/index.html b/whoami/index.html index d919c1c..a1bf331 100644 --- a/whoami/index.html +++ b/whoami/index.html @@ -186,10 +186,10 @@ Advanced computing international student at AUN. Programmer and Pythonista.

- + - + diff --git a/windows-package-manager-scoop/index.html b/windows-package-manager-scoop/index.html index 42dff5e..93d2bb7 100644 --- a/windows-package-manager-scoop/index.html +++ b/windows-package-manager-scoop/index.html @@ -86,7 +86,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-02-03-windows-package-manager-scoop/cover.png);"> + url(//davidz.cn/static/blog/2020-02-03-windows-package-manager-scoop/cover.png) ">

@@ -471,10 +471,10 @@ scoop list - + - + diff --git a/write-latex-report-with-markdown/index.html b/write-latex-report-with-markdown/index.html index bdb956d..e3aa386 100644 --- a/write-latex-report-with-markdown/index.html +++ b/write-latex-report-with-markdown/index.html @@ -83,7 +83,7 @@ animation-duration: 1.2s; background-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17), - url(//davidz.cn/static/blog/2020-02-12-write-latex-report-with-markdown/cover.jpg);"> + url(//davidz.cn/static/blog/2020-02-12-write-latex-report-with-markdown/cover.jpg) ">

@@ -385,10 +385,10 @@ subfigGrid: true - + - +