Fix posts

This commit is contained in:
FlintyLemming 2022-09-25 18:03:02 +08:00
parent ee50ec315d
commit f6af6ccef9
2 changed files with 25 additions and 25 deletions

View File

@ -1,12 +1,12 @@
+++ +++
author = "FlintyLemming" author = "FlintyLemming"
title = "CDN 反代新浪图床" title = "在群晖上配置 iSCSI 并在 Windows 下使用"
slug = "00187875246c440fb8f50bb1354ce81b" slug = "00187875246c440fb8f50bb1354ce81b"
date = "2020-05-31" date = "2020-05-31"
description = "" description = ""
categories = ["HomeLab", "Windows"] categories = ["HomeLab", "Windows"]
tags = ["Synology", "NAS"] tags = ["Synology", "NAS"]
image = "https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/title.jpg?x-oss-process=style/ImageCompress" image = "https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/title.jpg?x-oss-process=style/ImageCompress"
+++ +++
最近电脑的硬盘不够啦,但我有个 NAS里边好几块硬盘存储是没问题但是如果想跟电脑内置的硬盘一样用就有困难了。无论是直接安装在网络上的硬盘里的程序还是游戏经常会有问题于是经人提醒有一个 iSCSI 的功能。 最近电脑的硬盘不够啦,但我有个 NAS里边好几块硬盘存储是没问题但是如果想跟电脑内置的硬盘一样用就有困难了。无论是直接安装在网络上的硬盘里的程序还是游戏经常会有问题于是经人提醒有一个 iSCSI 的功能。
@ -15,60 +15,60 @@ image = "https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%
1. 在应用程序中找到 iSCSI Manager打开 1. 在应用程序中找到 iSCSI Manager打开
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/1.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/1.png?x-oss-process=style/ImageCompress)
2. 点击左侧的 Target点击后新增一个 iSCSI target在第一步中什么都不用改直接下一步 2. 点击左侧的 Target点击后新增一个 iSCSI target在第一步中什么都不用改直接下一步
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/2.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/2.png?x-oss-process=style/ImageCompress)
3. 这里也什么都不用改,直接新增一个 LUN 3. 这里也什么都不用改,直接新增一个 LUN
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/3.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/3.png?x-oss-process=style/ImageCompress)
4. 这里先选择一个存储位置,再根据实际情况选择给这个服务分配多少空间,我这里就将这块 2T 的硬盘全部分配给这个服务 4. 这里先选择一个存储位置,再根据实际情况选择给这个服务分配多少空间,我这里就将这块 2T 的硬盘全部分配给这个服务
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/4.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/4.png?x-oss-process=style/ImageCompress)
5. 检查一下,没什么问题后点应用就可以了。 5. 检查一下,没什么问题后点应用就可以了。
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/5.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/5.png?x-oss-process=style/ImageCompress)
6. 然后我们需要开启 Windows 里的 iSCSI 服务,直接使用搜索功能就可以搜索到配置工具 6. 然后我们需要开启 Windows 里的 iSCSI 服务,直接使用搜索功能就可以搜索到配置工具
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/6.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/6.png?x-oss-process=style/ImageCompress)
7. 第一次使用会让我们先把服务起起来,顺便会帮我们设置开机自启 7. 第一次使用会让我们先把服务起起来,顺便会帮我们设置开机自启
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/7.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/7.png?x-oss-process=style/ImageCompress)
8. 在“目标”里填上 NAS 的本地 IP 地址,然后点击“快速连接” 8. 在“目标”里填上 NAS 的本地 IP 地址,然后点击“快速连接”
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/8.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/8.png?x-oss-process=style/ImageCompress)
9. 这样就自动连上 NAS 的 iSCSI 服务了,点完成并确定上一级设置。 9. 这样就自动连上 NAS 的 iSCSI 服务了,点完成并确定上一级设置。
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/9.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/9.png?x-oss-process=style/ImageCompress)
10. 然后我们需要挂载这个分区,通过搜索或者右键 Windows 菜单按钮,打开 磁盘管理 工具 10. 然后我们需要挂载这个分区,通过搜索或者右键 Windows 菜单按钮,打开 磁盘管理 工具
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/10.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/10.png?x-oss-process=style/ImageCompress)
11. 这里就直接出现了引导挂在新分区的窗口,保留为 GPT 格式的分区,不需要更改,直接点确定 11. 这里就直接出现了引导挂在新分区的窗口,保留为 GPT 格式的分区,不需要更改,直接点确定
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/11.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/11.png?x-oss-process=style/ImageCompress)
12. 之后直接和计算机内的物理磁盘一样的操作,对着新挂载的硬盘直接新建简单卷 12. 之后直接和计算机内的物理磁盘一样的操作,对着新挂载的硬盘直接新建简单卷
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/12.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/12.png?x-oss-process=style/ImageCompress)
13. 具体过程不赘述了,自己根据情况分配空间,我这里就分一个区了 13. 具体过程不赘述了,自己根据情况分配空间,我这里就分一个区了
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/13.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/13.png?x-oss-process=style/ImageCompress)
14. 之后在资源管理器中就可以看到新盘符了,跟在电脑里的物理磁盘一样 14. 之后在资源管理器中就可以看到新盘符了,跟在电脑里的物理磁盘一样
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/14.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/14.png?x-oss-process=style/ImageCompress)
下面是关心的性能表现,我安装了一个大型程序,模拟硬盘满负载时候的表现,好像还不错呢 下面是关心的性能表现,我安装了一个大型程序,模拟硬盘满负载时候的表现,好像还不错呢
![](https://blog.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/15.png?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/15.png?x-oss-process=style/ImageCompress)

View File

@ -6,7 +6,7 @@ date = "2020-06-01"
description = "" description = ""
categories = ["Network", "MineService"] categories = ["Network", "MineService"]
tags = ["CDN", "Blog"] tags = ["CDN", "Blog"]
image = "https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/title.jpg?x-oss-process=style/ImageCompress" image = "https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/title.jpg?x-oss-process=style/ImageCompress"
+++ +++
新浪微博加防盗链有段时间了,但是允许空 Refer 访问,虽然在 Chrome 浏览器可以添加代码让图片正常加载,但是兼容性不好。于是就有了 CDN 反代新浪图床的方法。 新浪微博加防盗链有段时间了,但是允许空 Refer 访问,虽然在 Chrome 浏览器可以添加代码让图片正常加载,但是兼容性不好。于是就有了 CDN 反代新浪图床的方法。
@ -20,32 +20,32 @@ image = "https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%
4. 在“回源设置”中打开回源 Host域名填一个新浪的图床域名随便哪个都行比如我这里的 tva1.sinaimg.cn 4. 在“回源设置”中打开回源 Host域名填一个新浪的图床域名随便哪个都行比如我这里的 tva1.sinaimg.cn
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/1.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/1.jpg?x-oss-process=style/ImageCompress)
5. 回源 SNI 也设置一下,地址跟 HOST 地址一样 5. 回源 SNI 也设置一下,地址跟 HOST 地址一样
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/2.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/2.jpg?x-oss-process=style/ImageCompress)
6. 签一个这个图床 CDN 域名的证书或者你域名的通配符证书然后在“HTTPS设置”中把证书添加一下 6. 签一个这个图床 CDN 域名的证书或者你域名的通配符证书然后在“HTTPS设置”中把证书添加一下
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/3.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/3.jpg?x-oss-process=style/ImageCompress)
7. 打开 HTTP/2 7. 打开 HTTP/2
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/4.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/4.jpg?x-oss-process=style/ImageCompress)
8. 打开 TLS 1.3,关闭 1.0 和 1.1 8. 打开 TLS 1.3,关闭 1.0 和 1.1
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/5.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/5.jpg?x-oss-process=style/ImageCompress)
9. 打开防盗链,注意把允许空 Refer 关闭,建议选择白名单,然后添加一个你需要放图片的地址,比如你的博客地址 9. 打开防盗链,注意把允许空 Refer 关闭,建议选择白名单,然后添加一个你需要放图片的地址,比如你的博客地址
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/6.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/6.jpg?x-oss-process=style/ImageCompress)
## 使用方式 ## 使用方式
1. 将图片上传至新浪图床,工具一大堆,你要用 Chrome 的话在商店随便搜就有FireFox 我用的这个 1. 将图片上传至新浪图床,工具一大堆,你要用 Chrome 的话在商店随便搜就有FireFox 我用的这个
![](https://blog.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/7.jpg?x-oss-process=style/ImageCompress) ![](https://img.mitsea.com/blog/posts/2020/06/CDN%20%E5%8F%8D%E4%BB%A3%E6%96%B0%E6%B5%AA%E5%9B%BE%E5%BA%8A/7.jpg?x-oss-process=style/ImageCompress)
2. 不管你用的什么工具上传,请务必勾选 https 2. 不管你用的什么工具上传,请务必勾选 https