<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Shiro]]></title><description><![CDATA[夙兴夜，勤不怠。]]></description><link>https://shiro.love</link><image><url>https://assets.moedev.cn/blog/photo/icon/butterfly.png</url><title>Shiro</title><link>https://shiro.love</link></image><generator>Shiro (https://github.com/Innei/Shiro)</generator><lastBuildDate>Sat, 11 Apr 2026 04:53:25 GMT</lastBuildDate><atom:link href="https://shiro.love/feed" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Apr 2026 04:53:25 GMT</pubDate><language><![CDATA[zh-CN]]></language><item><title><![CDATA[修复Nginx反代飞牛相册卡顿、视频无法加载]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20251208184125.png!webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/posts/fun/fnos-nginx-reverse-proxy">https://shiro.love/posts/fun/fnos-nginx-reverse-proxy</a></blockquote><div><h2 id="">问题分析</h2><p>最近在使用飞牛的时候遇到了一个很奇怪的问题，通过域名可以正常进入飞牛首页，文件管理也正常，但是一旦访问飞牛相册，只有一开始加载正常，稍微刷一下瀑布流加载就会卡住，F12 打开控制台发现很多请求卡在了<code>Pending</code>。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/20251208184125.png!webp" alt="飞牛相册发起了大量请求" height="334" width="692"/></p><p>一开始以为是服务器性能跟不上，预览图没来得及生成，但是想了想也不对，普通的相册列表请求不应该卡成这个样子，于是我绕过 Nginx 通过 Tailscale 直接访问飞牛，这时候相册加载就是正常的，同时我发现飞牛相册的请求量非常大，那么既然直接访问没问题，那问题就出在公网服务器上的反代配置了。</p><p>下面是博主简化后的网络架构。</p><p style="padding:6px 12px;border-left:2px solid #33A6B8;background:#33A6B850;font-style:italic;font-weight:500">Not support render this content in RSS render</p>
<h2 id="">解决问题</h2><h3 id="">解决相册加载卡顿</h3><p>Nginx 在进行反向代理时，默认使用<code>HTTP/1.0</code>协议连接后端服务器，并发送<code>Connection: close</code>头。这意味着 Nginx 与 NAS 之间无法复用 TCP 连接，导致大量 TIME_WAIT 状态和握手开销。不仅仅是浏览器端的限制，Nginx 到后端也是瓶颈。</p><p>解决办法：</p><ol start="1"><li><p>清空<code>Connection</code>头，强制长连接</p><pre class=""><code class="">map $http_upgrade $connection_upgrade {
 default upgrade; # 如果是 WebSocket 请求，Connection 值为 upgrade
 &#x27;&#x27;      &#x27;&#x27;;      # 如果是普通请求，Connection 值为空（保留 HTTP/1.1 默认的 keep-alive）
}
</code></pre>
</li><li><p>设置长连接池</p><pre class=""><code class="">upstream backend {
 # 替换为你的飞牛 IP:端口
 server 192.168.x.x:5666;

 # 核心配置：保持与后端的长连接数量，减少 TCP 握手开销
 keepalive 64;
}
</code></pre>
</li><li><p>在反代中添加配置</p><pre class=""><code class="">location / {
 proxy_pass http://backend;

 # 强制使用 HTTP/1.1 并清除 Connection 头，从而激活长连接
 proxy_http_version 1.1;
 proxy_set_header Upgrade $http_upgrade;
 proxy_set_header Connection $connection_upgrade;

 # 优化：上传/下载不启用 Nginx 缓冲，直接转发数据
 proxy_request_buffering off;
 proxy_buffering off;
}
</code></pre>
</li></ol><p>按照以上设置即可解决Nginx反代飞牛相册后瀑布流加载卡住的问题。</p><h3 id="">解决视频无法加载</h3><p>视频播放卡住无法点播通常是忘记了配置 Nginx 当中的<code>Range</code>。如果反代不传递<code>Range</code>，后端会发送整个文件，反代服务器会尝试把整个文件缓存下来再发给客户端，这就会导致看起来无法加载。</p><blockquote class="markdown-alert-tip"><header>TIP</header><p>Nginx中的Range（范围）请求是HTTP协议允许客户端（如浏览器、下载器）指定只获取文件的一部分内容，主要用于实现断点续传、多线程下载、视频流媒体、实现视频播放进度条等功能；当服务器支持Range请求时，会在响应头中包含Accept-Ranges:bytes，Nginx通过处理客户端的Range头部来发送指定字节范围数据，并返回206 Partial Content状态码。</p></blockquote>
<div></div><p>所以在反代部分中加入Range即可（非完整配置）</p><pre class=""><code class="">location / {
    # ...其他配置...

    # 支持视频流拖拽与断点续传
    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;

    # 关闭缓冲，让数据流实时通过
    proxy_request_buffering off;
    proxy_buffering off;
}
</code></pre>
<h2 id="">完整配置参考</h2><p>下面是基于修改后的完整 Nginx 配置，博主已经测试，欢迎评论区反馈。</p><pre class=""><code class=""># WebSocket和长连接配置
map $http_upgrade $connection_upgrade {
    default upgrade;
    &#x27;&#x27;      &#x27;&#x27;;
}

# 后端服务器配置
upstream backend {
    # 替换为你的飞牛IP:端口（因为我流量全程在隧道，所以这里默认http）
    server 192.168.x.x:5666;

    keepalive 64;
}

server {
    listen 80;
    listen [::]:80;
    server_name example.com;  # 替换为你的域名
    
    # HTTP 自动跳转 HTTPS
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name example.com;  # 替换为你的域名
    
    # ========== SSL 证书配置 ==========
    ssl_certificate     /path/to/fullchain.pem;   # 替换证书路径
    ssl_certificate_key /path/to/privkey.pem;     # 替换密钥路径
    
    # SSL 安全配置
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    
    # ========== 反向代理配置 ==========
    location / {
        proxy_pass http://backend;
        
        # 传递客户端真实信息
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        
        # http1.1提供长连接和WebSocket支持
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        
        # 视频流支持 (解决视频无法点播的问题)
        proxy_set_header Range $http_range;
        proxy_set_header If-Range $http_if_range;
        
        # 大文件上传/下载优化
        proxy_request_buffering off;  # 上传不缓冲
        proxy_buffering off;          # 下载不缓冲
        
        # 超时配置
        proxy_connect_timeout 600s;
        proxy_send_timeout 600s;
        proxy_read_timeout 600s;
        
        # 上传大小限制 (0为无限)
        client_max_body_size 0;
    }
}
</code></pre></div><p style="text-align:right"><a href="https://shiro.love/posts/fun/fnos-nginx-reverse-proxy#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/posts/fun/fnos-nginx-reverse-proxy</link><guid isPermaLink="true">https://shiro.love/posts/fun/fnos-nginx-reverse-proxy</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Mon, 08 Dec 2025 10:53:15 GMT</pubDate></item><item><title><![CDATA[去看了《小林家的龙女仆：害怕寂寞的龙》]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20251110190240.png!webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20251110190408.png!webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/notes/14">https://shiro.love/notes/14</a></blockquote><div><p>初中时期的启蒙番之一，一二季都是一集一集追完的，看到出电影了就跑去追回忆了。就是天津的电影票价格真的好贵，比咱小县城贵了一倍左右。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/20251110190240.png!webp" height="720" width="1280"/>
<img src="https://assets.moedev.cn/blog/photo/images/2025/20251110190408.png!webp"/></p></div><p style="text-align:right"><a href="https://shiro.love/notes/14#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/notes/14</link><guid isPermaLink="true">https://shiro.love/notes/14</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Mon, 10 Nov 2025 11:04:51 GMT</pubDate></item><item><title><![CDATA[接收来自 UmKA-1 (RS 40S) 卫星的 SSTV 图像]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/7448C6758FA139DDB7ADD2462051177B.jpg!webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/EF184651A2CD292C54EA06CD93246A34.jpg!webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/B59A7A67C7B1A51F32069A339C453706.jpg!webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/notes/13">https://shiro.love/notes/13</a></blockquote><div><h2 id="">引言</h2><p>最近从友台（BG5FNA）处借得一副U7V4++的八木，于是就有了收收卫星的想法。正巧近期UmKA-1上有个科学节活动，所以就带着学校刚考证的朋友跑去收活动SSTV了。总共收到三副，最后一幅是在卫星仰角0°后收到的，原本都已经收拾天线准备走人了，因此第三张的开头没有做好准备接收导致残缺了一部分。下面是整理好的相关信息。</p><h2 id="">接收信息</h2><ul><li><strong>时间</strong>：北京时间 2025 年 10 月 28 日 20:30</li><li><strong>地点</strong>：天津</li><li><strong>设备</strong>：森海克斯 8600</li><li><strong>天线</strong>：U7 八木</li></ul><h2 id="">活动信息</h2><p>在&quot;科学0+库班&quot;科学节期间（10月27-31日），UmKA-1卫星将进行一系列SSTV图像传输，这些特制图片均由科学节组委会精心准备。</p><p>来源：<a href="https://t.me/onthe_air/1447">https://t.me/onthe_air/1447</a></p><h2 id="">接收到的图像</h2><h3 id="--">伊戈尔·库尔恰托夫 (Игорь Курчатов)</h3><p><img src="https://assets.moedev.cn/blog/photo/images/2025/7448C6758FA139DDB7ADD2462051177B.jpg!webp" alt="伊戈尔·库尔恰托夫" height="502" width="633"/></p><blockquote><p>科学应该服务于和平，原子不是用于破坏，而是用于创造</p></blockquote>
<p>伊戈尔·库尔恰托夫是苏联核物理学家，被称为&quot;苏联原子弹之父&quot;。</p>
<h3 id="--">瓦莲京娜·捷列什科娃 (Валентина Терешкова)</h3><p><img src="https://assets.moedev.cn/blog/photo/images/2025/EF184651A2CD292C54EA06CD93246A34.jpg!webp" alt="瓦莲京娜·捷列什科娃"/></p><blockquote><p>不应该从旁观察生活，而应该与生活同行</p></blockquote>
<p>瓦莲京娜·捷列什科娃是世界上第一位女宇航员，于 1963 年进入太空。</p>
<h3 id="--">弗拉基米尔·科马罗夫 (Владимир Комаров)</h3><p><img src="https://assets.moedev.cn/blog/photo/images/2025/B59A7A67C7B1A51F32069A339C453706.jpg!webp" alt="弗拉基米尔·科马罗夫"/></p><blockquote><p>人不是他自认为的那样，而是他所做的那样</p></blockquote>
<p>弗拉基米尔·科马罗夫是苏联宇航员，1967 年在执行联盟 1 号任务时不幸遇难，成为世界上第一位在太空飞行任务中牺牲的宇航员。</p></div><p style="text-align:right"><a href="https://shiro.love/notes/13#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/notes/13</link><guid isPermaLink="true">https://shiro.love/notes/13</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Tue, 28 Oct 2025 14:19:33 GMT</pubDate></item><item><title><![CDATA[低功耗家里云升级记：Intel D-1581 寨板使用体验与性能测试]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122114505511.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/2968d579479463334834d2f67b7ec886.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122112601528.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122112620502.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/bb2104a889575a48dcb691c455fc5259.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/c2d803ccdaf0c6767ed4337364b0e8bd.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/ee80a0c4774359b1cc2df8e886b65280.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/a787d34687b762780c2e9c2ce424dd01.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122164632909.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122164600246.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122165137765.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122164813597.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/b7f78dee4d1961936b4fdcc19024413e.jpeg!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/7d022cb87046bc32c6b281bd733b59fc.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122172921849.png!webp_white_sign"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2025/20250122172939377.png!webp_white_sign"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/posts/fun/intel-d1581-home-server-upgrade">https://shiro.love/posts/fun/intel-d1581-home-server-upgrade</a></blockquote><div><h2 id="">缘由</h2><p><img src="https://assets.moedev.cn/blog/photo/images/2025/20250122114505511.png!webp_white_sign" height="555" width="1200"/>
↑上图是博主家里云早期形态，咱自己知道很抽象，就别吐槽了（QAQ）</p><p>在最近一次断电后，家里的老服务器便未能再次成功启动。此前家里的软路由、HA和咱自用的容器服务器等设施都运行在这上面。于是购置一台新的服务器就成了需要马上解决的问题。</p><p>老服务器是博主在高中的时候用可怜的预算组的，由一块退役X8DTL-3F主板搭配双路X5680和混插的32G内存组成，硬盘在后期也只有一块英睿达MX500，电源在搬出准系统后用的是一款捡废品的不知名老电源，待机功耗达到了相当恐怖的100-110w。（一年下来电费都够买一台全新的服务器了）</p><p>有了之前的经验，这次选购新平台的时候博主就非常注重能耗问题，毕竟博主身处19线小县城，当地私人电力公司从国网购电后再销售给当地居民，电价&gt;0.6/度。可惜当前arm洋垃圾价格仍然不够便宜，在群友的建议下，咱准备从d1581和d-2143it中选择一套。</p><h2 id="">采购</h2><h3 id="u--">板U + 内存</h3><p>逛了两天咸鱼后博主选择了火神革命D-1581 Q3板U套装，虽然知道寨板问题挺多的，但是它胜在便宜啊。主板+U套装咸鱼二手只要300出头，而且还有2.5G网口x2，并且D-1581拥有16核32线程，采用14nm工艺，TDP仅仅只有65w，相比之前老平台上单颗130w的X5680能耗不知道甩了几条街，完美符合咱对家里云的想象。</p><p>内存是咸鱼卖家一起打包出售的4根16GB DDR3L低压1666Mhz三星内存条。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/2968d579479463334834d2f67b7ec886.jpeg!webp_white_sign" height="732" width="1200"/></p><p>::: grid {cols=2,rows=1,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122112601528.png!webp_white_sign" alt="D-1581 Q3板U" height="1599" width="1200"/>
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122112620502.png!webp_white_sign" alt="4根16GB DDR3L低压1666Mhz三星内存条" height="1600" width="1200"/>
:::</p><h3 id="">硬盘</h3><p>硬盘方面系统盘依旧使用原有的英睿达MX500，在此基础上咱又从淘宝店家“上海浦东服务器”购买了一块店保1年的6TB SAS盘作为数据写入盘。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/bb2104a889575a48dcb691c455fc5259.jpeg!webp_white_sign" height="900" width="1200"/></p><p>::: grid {cols=2,rows=1,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2025/c2d803ccdaf0c6767ed4337364b0e8bd.jpeg!webp_white_sign" height="658" width="1200"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/ee80a0c4774359b1cc2df8e886b65280.jpeg!webp_white_sign" height="1160" width="1200"/>
:::</p><h3 id="">电源&amp;机箱</h3><p>一开始咱用的老服务器上捡垃圾来的杂牌电源，结果加上新硬盘后硬盘供电线不够了，索性直接把家里闲置的直出线长城电源换上了。机箱也是用的之前买的航嘉￥99机箱。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/a787d34687b762780c2e9c2ce424dd01.jpeg!webp_white_sign" height="682" width="1200"/></p><h2 id="">部署</h2><p>拆掉旧主板，然后水洗散热器里的灰尘，不停歇的跑了整整两三年还是积了不少灰。</p><p>::: grid {cols=2,rows=1,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122164632909.png!webp_white_sign" height="900" width="1200"/>
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122164600246.png!webp_white_sign" height="900" width="1200"/>
:::</p><h3 id="">寨板内存问题</h3><p>安装散热器到新主板测试一次点亮进入BIOS，但是一进入Ventoy引导的WinPE就死机重启，数显管故障码42。插上原来的系统盘进入PVE系统的时候也出现了问题，在启动过程中PVE会卡死机在Loading initial ramdisk，重启后问题稳定复现。</p><p>通过在网上对这块寨板的搜索，最终在v2ex论坛找到一个有用的答复。</p><blockquote><p>V2EX  ›  问与答  <a href="https://www.v2ex.com/t/908551#">https://www.v2ex.com/t/908551#</a>;
zeze0556      2023-01-13 16:29:59 +08:00
@xuxuxu123 我目前在用的是这个方案。感觉不稳定。头一次，vmware 中开鲁大师跑分，到 cpu 测试的某一项，3/10 的概率整台电脑（不是单独虚拟机）定屏死机。后来换了主板，就是目前在用的，vmware 中跑鲁大师无问题了，然后发现，有时候正常关机后，再次开机鼠标+键盘可能就失效了（连电都不供的那种），重启无效，除非把电源断开 10 秒以上，然后开机就又回来了，这个问题只是一个使用麻烦的问题，另外一个问题就实在太无语了，我内存加满到 4x16G,有时候几天都不出问题，有时候突然来个定屏死机，不频繁+我自己太忙，就先凑活着。前几天稍闲，决定看看到底是什么问题，根据 windows 的日志，有很多内存相关的错误，但定屏死机没有错误日志，这个真的靠猜测了。联系客服，反馈内存问题，然后沟通测试单条，看是否内存的问题。这两天我晚上一回家就测试，一个晚上多加一根内存，目前测试到第三根内存，结果都没有出现死机。但昨天完场发现另外一个问题，<mark class="rounded-md"><span class="px-1">四个内存槽，从 cpu 侧往电源侧数，1-3 内存槽，如果插了的话，电脑开机就是黑的，连 bios 自检画面都不出来，如果隔开第 3 个内存槽，则正常开机。</span></mark>但目前还没发现死机，因为死机无规律，只能看运气。理论上将，可能 4 根内存插上也可以开机，毕竟之前就这么用的，只是会死机。目前过年要回老家了，注定要年后去骚扰客服了。</p></blockquote>
<p>博主按照这位网页的插法去掉一根内存果然顺利进入系统，并且后续测试稳定不死机，不过这样很可惜的就是白白浪费掉一根内存条，总内存从64G下降到48G，心里在滴血。</p><p>随后装入机箱，并加装SAS直通卡和硬盘，通过显示器上的终端修改PVE网卡绑定。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/20250122165137765.png!webp_white_sign" height="420" width="1200"/></p><p>::: grid {cols=2,rows=1,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122164813597.png!webp_white_sign" height="900" width="1200"/>
<img src="https://assets.moedev.cn/blog/photo/images/2025/b7f78dee4d1961936b4fdcc19024413e.jpeg!webp_white_sign" height="1613" width="1200"/>
:::</p><h3 id="">内存问题分析</h3><p>博主咨询了卖家此前的运行情况，了解到原主人安装ESXI 8U3的时候内存插满运行正常，也就是说这块板子一开始是正常的，同时网上另一家D-1581主板厂子（米多贝克）的主板不存在内存插满死机问题，因此也可以排除设计缺陷。</p><p>博主猜测由于主板走线设计问题，内存插槽可能在运输途中受损所以出现了工作不稳定的情况。</p><h2 id="">测试</h2><h3 id="">来电自启测试</h3><p>好在该寨板本就为AIO（All in one，all in boom）设计，所以板载了来电开机跳线，经过几次人为意外断电测试，机器均能稳定启动并进入PVE。</p><p>为了避免以外发生，咱又在咸鱼购入一台Pikvm（基于onekvm的ipmi系统，能通过网络远程控制主机，可连接被控显示器输出和鼠标输入，并模拟usb设备插入和控制开机重启跳线），目前已经下单在途还未收到货。</p><h3 id="geekbench-6">Geekbench 6测试</h3><p>测试结果：https://browser.geekbench.com/v6/cpu/10055850</p><p>被测主机信息：</p><p><img src="https://assets.moedev.cn/blog/photo/images/2025/7d022cb87046bc32c6b281bd733b59fc.png!webp_white_sign" height="461" width="1200"/></p><p>单核&amp;多核测试结果：</p><p>::: grid {cols=2,rows=1,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122172921849.png!webp_white_sign" height="1320" width="1200"/>
<img src="https://assets.moedev.cn/blog/photo/images/2025/20250122172939377.png!webp_white_sign" height="1314" width="1200"/>
:::</p><p>单核可以说是惨不忍睹，但是家里云这种场景来说，完全够用了。希望这台机器能够稳定使用5个年头吧，到时候估计就能玩上arm洋垃圾了。</p><p>完结撒花，感谢阅读🌸</p></div><p style="text-align:right"><a href="https://shiro.love/posts/fun/intel-d1581-home-server-upgrade#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/posts/fun/intel-d1581-home-server-upgrade</link><guid isPermaLink="true">https://shiro.love/posts/fun/intel-d1581-home-server-upgrade</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Wed, 22 Jan 2025 09:37:50 GMT</pubDate></item><item><title><![CDATA[2024年度 · 总结&回顾]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20240902_152704.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/2024summary/photo_2024-12-31_19-30-14.jpg"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241105_113617.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241105_120413.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241124_194617.webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/notes/10">https://shiro.love/notes/10</a></blockquote><div><p>今天是 2024 年的最后一天，回想起年初，我还没从 2023 年的疲惫中恢复过来。去年的年度总结写了删、删了改，始终难以满意。长期不写长文之后，再动笔真的很困难，杂鱼般的脑子无法兼顾上下文的内容，想到哪里就写哪里，总之写不出点自己看得下去的东西。为了改善这种情况，所以我计划又要开始动<del>笔</del>键盘了！</p><p>2024 年从大二到大三这一年的时间里真的过的实在是太累了，参加了一堆杂七杂八的比赛，技术类的比赛倒是无所谓，我本来就走的技术型路线，结果还是因为种种不可抗因素强撑着参加了很多非技能的比赛和评选。比如 2023 年底刚参加完职规赛校赛和职业院校技能大赛省赛，寒假就得开始准备职规赛省赛的材料，寒假里学校又请了“专家”在线上会议帮忙打磨了 3 次 PPT，整个寒假不是在改 PPT 就是在改演讲稿，一点都不消停。</p><h2 id="">总结</h2><p>不过总算是“活到”2024 年底了，终于迎来空窗期了，回望这一整年确实非常辛苦，但也收获颇丰，今年解锁了三座新城市：上海、淄博和拉萨。在校方面收获了天津市三好学生、国家奖学金和天津市大学生年度人物提名奖，也算是混的不错。同时前几天拿下的职业院校技能大赛省赛一等奖，也使我拥有了免试专升本的资格，虽然我所在的大专不差，但这下也总算是圆了个本科梦了。</p><p>最令我开心的是，今年一直有一个人陪伴着我，这么多比赛要是只有我一个人估计早就崩溃了，但好在另一半一直坚持支撑着我的情绪，才能苦苦坚持下来，虽然最后因为种种事情得了高血压。因此在明天开始的 2025 年，我会开始持续健身来保障身体健康，将血压降下去，多写学习笔记提高写文能力，同时降低自己在学校的存在感，尽量少揽活，多专心学习，为本科阶段做准备。</p><p>那么在总结的结尾，回顾的开始，让我先祝正在阅读我博客的各位：</p>
<p><strong>白白祝你新年快乐！过个好年~~</strong></p><h2 id="">回顾</h2><p>接下来就开始流水账式的回顾了。</p><p>由于博主水平有限，部分段落内容较多且缺乏分层，阅读体验会较差，请见谅！</p><h3 id="">开学</h3><p>年初开学的时候为了赶在业余无线电新规 3 月 1 日施行前，我只能提前几天飞回天津参加协会的 B 类操作证考试，仅仅只复习了一个晚，考试要求是题库抽取 50 题要答对至少 40 道题。万幸的是我一次就通过了考试。考试前一天我在酒店从晚上九点开始刷题，弄到凌晨 2 点把 600 多题的知识点全部过了一遍，早上 7 点起来又花了一个小时把题库刷完了一遍，9 点出门和朋友吃完早饭就一起去到了考场，站在考场的时候我也一直在刷题，生怕过不了，以至于有个河北的无线电 UP 主来了我都没注意到。</p><p>在 3 月中的时候，想着既然考了业余无线电 B 类操作证，那一定得搞台短波玩玩，于是那段时间就在咸鱼蹲了很久很久，因为预算有限，最终淘到了一台 95 新的 Icom IC-718，成色相当不错，超级满意，那段时间寝室还在一楼，从窗台架根 GP 天线就能玩，就是驻波调整起来相当麻烦。</p><p><a href="https://x.com/verymoes/status/1766768493314408826">https://x.com/verymoes/status/1766768493314408826</a></p><p>开学还没来得及喘口气就又迎来了职规赛省赛。省赛成绩明明压刚好，是银奖第一个，不是金奖，想着这样就不用参加国赛了。结果事实证明，我太年轻了，虽然是银奖，但是被省里推到了国赛网评，结果还通过了....真的气死了，然后就又是一轮国赛打磨，还请了演讲专家来线下教学... 五月份国赛去到了上海参赛，也算是见过魔都了。</p><p>在参加职规赛这种不太待见的 PPT 比赛的时候我同时还在准备省里的工匠杯大赛，职规赛国赛结束完没两天就是工匠杯大赛，当时给我急的特难受，想参加的比赛没好好准备，不想参加的比赛又先来，那段时间回想起来真的很痛苦，被学校压力上了直接，高血压估计也是这个时候开始出现的。</p><p><a href="https://x.com/verymoes/status/1769958468428132642">https://x.com/verymoes/status/1769958468428132642</a></p><p><a href="https://x.com/verymoes/status/1788443350603018445">https://x.com/verymoes/status/1788443350603018445</a></p><p><a href="https://x.com/verymoes/status/1856269235745632744">https://x.com/verymoes/status/1856269235745632744</a></p><p>清明节的时候，实验室大三的学长，带着我们这些学弟和已经升学的几个学长一起去爬了泰山，确实是人挤人，连没有路的石头上都有人在爬。有了这次教训，下次我再也不在节假日出门了）</p><p><a href="https://x.com/verymoes/status/1776042652989030720">https://x.com/verymoes/status/1776042652989030720</a></p><p><a href="https://x.com/verymoes/status/1776041607315484758">https://x.com/verymoes/status/1776041607315484758</a></p><h3 id="">生日</h3><p>6 月 1 号这天并不是我出生的日期，但正好是我和其它两个人生日之间的日期，同时也是六一儿童节，于是这一天，我们寝室的三个人同时过生日了。我也正式迈入 20 岁这个年龄段，又老一岁，开始年龄焦虑了。</p><p><a href="https://x.com/verymoes/status/1797626153483858188">https://x.com/verymoes/status/1797626153483858188</a></p><p>6 月 3 号这天，家里人送了我一份生日礼物，让我换一台手机，避免之前的手机后台运存不够用，乱鲨后台进程导致接不了微信电话的问题。家里人知道我比较偏向小米，所以一开始就支持我买小米 14，不过我想了好一会，觉得 k70 就够用了，毕竟我也不玩手机游戏，钱也不是大风刮来的，最后买了一部 k70 墨羽黑 256G 就很心满意足了，这应该也是家里人给我买的最后一部手机了。k70 实际使用下来也还是挺不错的，续航什么的都够。</p><p>||6 月 10 号收到了一件意义重大的东西，具体是什么就保密了。||</p><h3 id="">暑假</h3><p>到了 7 月，开始和室友准备租房（PS：博主是辣鸡专科，大三就开始实习了），我的计划是只住 7-8 两个月，因为我大三还有比赛，所以可以留校，室友则是都退宿了。于是我开始了为期两个月的“独居生活”。</p><p>本来一开始我就想着合伙买厨具做饭的，但是无奈室友嫌太麻烦，觉得外卖成本也差不多。结果他才实习一个月出头就坚持不住跑去买厨具了，于是后来又自己做饭吃了一段时间。</p><p>暑假的时候去锻炼了一段时间，可惜开学后没能坚持下来。</p><p>暑假生活刚开始的时候，认识了很多年的一位网友也放假了跑来天津找我玩，这还是第一次被异地网友||<del>扑倒</del>||面基，带着他把地标都逛了逛，但事实证明，天津就那样（）</p><p><a href="https://x.com/verymoes/status/1821045524700819834">https://x.com/verymoes/status/1821045524700819834</a></p><p><a href="https://x.com/verymoes/status/1820686644842041534">https://x.com/verymoes/status/1820686644842041534</a></p><p>带网友玩了两三天送回去后，我又被叫回学校去淄博参加比赛了（明明放假了还办比赛，也是服了承办校了）。不过毕竟是网红城市，还是非常想去撸串的。</p><p>淄博烧烤说实话给我感受一般，但是淄博当地的博山菜给我震惊到了，口味都很清淡但又很有滋味，非常耐吃，对于我这种高血压人士来说相当健康，一下子就爱上了。</p><p><a href="https://x.com/verymoes/status/1811383113114927243">https://x.com/verymoes/status/1811383113114927243</a></p><p><a href="https://x.com/verymoes/status/1811991016007958859">https://x.com/verymoes/status/1811991016007958859</a></p><p>7 月底的时候在礼物交换日收到了莉沫酱的牌牌，这下和云游君一起凑齐了（心满意足.webp）</p><p><a href="https://x.com/verymoes/status/1817113471965696083">https://x.com/verymoes/status/1817113471965696083</a></p>
<h3 id="">大三</h3><p>9 月初返校，刚准备搬寝室就在朋友那边看到了炸裂的东西。</p><p><img src="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20240902_152704.webp" height="900" width="1200"/></p><p>开学后跟老师一起走访了两家企业，一家医疗软件企业，一家传感器制造企业，了解到了企业的一些难处，比如为什么现在实习岗这么少，硬件企业给到的说法是，毕竟现在年轻人员流失的风险相当大，企业辛辛苦苦培养完，转头就走人了，一点不讲回报。然后这两家企业都表示，市面上也能招到有工作经验的人，招到就能直接工作，相比之下，花了时间价钱培养的大概率会跑路的实习生，何苦呢？企业家又不是傻子。</p><p>十月中旬的时候去医院查了查高血压，因为月底会去拉萨参加国赛，之前虽然知道自己有高血压，但一直没去医院确诊。以前在小县城我一直以为只有住院才能报销，结果头一次来天津的医院，才知道人家医保联网了超级好用，结果我第一次刷医保做检查就达到报销门槛了（）。检查抽了差不多 7 管血，疼死了。</p><p><img src="https://assets.moedev.cn/blog/photo/article/2024/2024summary/photo_2024-12-31_19-30-14.jpg" height="753" width="1200"/></p><p>最后确诊原发性高血压了，医生也建议我别去拉萨。</p><p>但是不得不去嘛....</p><p><a href="https://shiro.love/notes/8">https://shiro.love/notes/8</a></p>
<p>从西藏回来后又闲了一段时间，改造了一下寝室的“环绕影音系统”，同时这段时间我上了 Netflix 合租车，狠狠补了一些电影。</p><p>::: grid {cols=2,rows=1,gap=4,type=images}
<img src="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241105_113617.webp" height="900" width="1200"/>
<img src="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241105_120413.webp" height="900" width="1200"/>
:::</p><p>11 月份主要都在折腾评选，天津市三好学生、国家奖学金和天津市大学生年度人物，除了大学生年度人物只拿到了提名奖，另外两个都成功到手，今年过年能有些预算了。</p><p><a href="https://x.com/verymoes/status/1869637412592488907">https://x.com/verymoes/status/1869637412592488907</a></p><p>闲着没事干买了血型试纸和室友一起测，总算是清楚自己的血型了。</p><p><img src="https://assets.moedev.cn/blog/photo/article/2024/2024summary/IMG_20241124_194617.webp" height="900" width="1200"/></p><p>完事就剩下 12 月份了。</p><p>大三留校学生没有课程，但有比赛，这关乎我们能不能保送前往本科，也是为什么我的年度报告拖到了今天才写，比赛才刚结束 2 天，人刚刚缓过来，并且如愿以偿拿下一等奖，成功获得免试专升本资格。寝室 5 个人拿下 4 个一等奖，虽然不是皆大欢喜，但获奖比例也很高了。</p><p>完事和室友一起去吃了散伙饭，明年除了我还要继续留校准备其它比赛，其他室友大概率就都不来了，等 2025 年 9 月升学本科才能见到了。</p><p><a href="https://x.com/verymoes/status/1873570216002936955">https://x.com/verymoes/status/1873570216002936955</a></p><h2 id="">结尾</h2><p>感谢耐心的你一直陪我到了这里，再次祝你新年快乐，诸事顺利！</p></div><p style="text-align:right"><a href="https://shiro.love/notes/10#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/notes/10</link><guid isPermaLink="true">https://shiro.love/notes/10</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Tue, 31 Dec 2024 10:07:09 GMT</pubDate></item><item><title><![CDATA[Nginx配置指南：基于497错误码实现单端口HTTP自动跳转HTTPS]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/article/2024/nginx-single-port-http-https-redirect/curl.png!webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/posts/note/nginx-single-port-http-https-redirect">https://shiro.love/posts/note/nginx-single-port-http-https-redirect</a></blockquote><div><h2 id="">场景分析</h2><p>通常情况下，HTTP 和 HTTPS 无法共用同一个端口，因为两者使用不同的协议，无法在同一端口上完成握手通信，除非 Web 服务器能够根据协议类型进行智能分流。然而，为了提升用户体验，我们应该实现当用户使用 HTTP 协议访问网站时，自动跳转到 HTTPS 协议。例如，当用户访问 <code>http://192.168.1.1:2233</code> 时，服务器自动重定向到 <code>https://192.168.1.1:2233</code>。</p><p>PS：起初我认为 Nginx 是做不到的，需要基于 HAProxy 实现协议分流，但实际情况是，Nginx 已经内置支持了，只需要我们合理利用 Nginx 的 497 错误响应。</p><p>常见的一些平台，例如 <strong>Proxmox VE (PVE)</strong>、 <strong>VMware ESXi Web Client</strong>都采用了单端口跳转机制，既确保了管理界面的安全性，又提供了无需手动输入协议头的良好用户体验。</p><p>效果如下：</p><p><img src="https://assets.moedev.cn/blog/photo/article/2024/nginx-single-port-http-https-redirect/curl.png!webp" height="200" width="200"/></p><h2 id="">实验测试</h2><p>为了验证上述场景，基于 Nginx 配置一个纯 HTTPS 网站，并使用<code>curl</code>工具分别通过 HTTP 和 HTTPS 协议进行请求。</p><h3 id="-errorpage-497">初始配置（未配置 <code>error_page 497</code>）</h3><h4 id="nginx-">Nginx 配置文件</h4><pre class="language-nginx lang-nginx"><code class="language-nginx lang-nginx">server {
    listen 2233 ssl;
    server_name 192.168.1.1;

    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;

    location / {
        root /var/www/html;
        index index.html;
    }
}
</code></pre>
<h4 id="">测试结果</h4><ol start="1"><li><p><strong>HTTP 请求</strong></p><p> 使用<code>curl</code>发送 HTTP 请求：</p><pre class="language-bash lang-bash"><code class="language-bash lang-bash"> curl -v http://192.168.1.1:2233
 </code></pre><p> 服务器响应：</p><pre class=""><code class=""> HTTP/1.1 400 Bad Request
 </code></pre><p> 说明：由于未配置 HTTP 处理，Nginx 在接收到 HTTP 请求时返回了 400 错误。</p></li><li><p><strong>HTTPS 请求</strong></p><p> 使用<code>curl</code>发送 HTTPS 请求：</p><pre class="language-bash lang-bash"><code class="language-bash lang-bash"> curl -v https://192.168.1.1:2233
 </code></pre><p> 服务器正常响应网站内容。</p></li></ol><h3 id="-errorpage-497-">配置 <code>error_page 497</code> 实现自动重定向</h3><p>为了实现 HTTP 请求自动重定向到 HTTPS，我们需要配置 Nginx 处理错误码 497，并返回 302 重定向。</p><h4 id="-nginx-">修改后的 Nginx 配置文件</h4><pre class="language-nginx lang-nginx"><code class="language-nginx lang-nginx">server {
    listen 2233 ssl;
    server_name 192.168.1.1;

    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;

    location / {
        root /var/www/html;
        index index.html;
    }

    # 捕获HTTP请求发送到HTTPS端口的错误497，并重定向到HTTPS
    error_page 497 = @redirect_to_https;

    location @redirect_to_https {
        return 302 https://$host:$server_port$request_uri;
    }
}
</code></pre>
<h4 id="">测试结果</h4><ol start="1"><li><p><strong>HTTP 请求</strong></p><p> 使用<code>curl</code>发送 HTTP 请求：</p><pre class="language-bash lang-bash"><code class="language-bash lang-bash"> curl -v http://192.168.1.1:2233
 </code></pre><p> 服务器响应：</p><pre class=""><code class=""> HTTP/1.1 302 Found
 Location: https://192.168.1.1:2233/
 </code></pre><p> 说明：配置<code>error_page 497</code>后，Nginx 检测到 HTTP 请求发送到 HTTPS 端口，返回了 302 重定向，自动将请求引导至 HTTPS。</p></li><li><p><strong>HTTPS 请求</strong></p><p> 使用<code>curl</code>发送 HTTPS 请求：</p><pre class="language-bash lang-bash"><code class="language-bash lang-bash"> curl -v https://192.168.1.1:2233
 </code></pre><p> 服务器正常响应网站内容。</p></li></ol><h2 id="-497-">利用 497 响应</h2><h3 id="1--http--497">1. 什么是 HTTP 状态码 497？</h3><p>HTTP 状态码 497，“HTTP 请求发送到 HTTPS 端口”，是 Nginx 特有的错误代码。当客户端尝试使用 HTTP 协议连接到预期为 HTTPS 的端口时，Nginx 会返回此错误。此错误表示协议不匹配，服务器拒绝了该请求。</p><p>理解 497 错误有助于诊断协议不匹配的问题，并确保 Nginx 正确配置和强制执行 HTTPS 连接。</p><h3 id="2-497-">2. 497 错误码的常见原因</h3><ol start="1"><li><strong>URL 协议错误</strong>：客户端使用 HTTP 而非 HTTPS 协议，可能由于书签过时或链接错误导致。</li><li><strong>服务器配置问题</strong>：服务器在特定端口上配置为处理 HTTPS 请求，但误收到 HTTP 请求。</li><li><strong>手动输入错误</strong>：用户在手动输入 URL 时，忘记添加“https://”，默认使用“http://”导致协议不匹配。</li></ol><h2 id="">结论</h2><p>通过上述配置，当用户通过 HTTP 协议访问 <code>http://192.168.1.1:2233</code> 时，Nginx 服务器会响应一个 302 重定向，将用户自动引导至 <code>https://192.168.1.1:2233</code>。这种配置不仅提升了安全性，确保所有通信都通过加密的 HTTPS 进行，还优化了用户体验，避免了因协议不匹配而产生的错误。</p><h2 id="">参考资料</h2><p><a href="https://error404.atomseo.com/blog/status-code-497" title="Understanding and Steps to Resolve the 497 Error Code">1. Understanding and Steps to Resolve the 497 Error Code</a></p><p></p></div><p style="text-align:right"><a href="https://shiro.love/posts/note/nginx-single-port-http-https-redirect#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/posts/note/nginx-single-port-http-https-redirect</link><guid isPermaLink="true">https://shiro.love/posts/note/nginx-single-port-http-https-redirect</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Fri, 06 Dec 2024 13:04:01 GMT</pubDate></item><item><title><![CDATA[海拔3600米的旅行—日光城拉萨]]></title><description><![CDATA[<link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/maps.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241023_101147.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241023_094149.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_124641.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_154902.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_155038.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_134304.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_122801.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_162509.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184212.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184339.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184302.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_193652.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_194521.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_195841.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_194908.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_203016.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/wx_camera_1729747558277.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_110912.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_105346.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_111810.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_112241.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_113146.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_114518.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_122303.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_122253.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_124951.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_123917.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_134113.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_141901.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_144302.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241028_123939.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_233047.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232753.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232728.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232715.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_210008.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/z30shb.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241028_121923.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_174955.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_180417.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_210635.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_213937.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_230847.webp"/><link rel="preload" as="image" href="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241030_003430.webp"/><div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/notes/8">https://shiro.love/notes/8</a></blockquote><div><h1 id="-3600-">海拔 3600 米的旅行—日光城拉萨</h1><p>作为宅宅平时就没想着出门玩什么的，这学期连地铁都没怎么坐过，来天津后出门去过最远的地方也就和朋友一起组团去爬泰山。不过这次恰好比赛承办校在拉萨，所以就有了这趟公费<del>旅游</del>。</p><p>::: warning
<em>本文多图流水账警告</em>
:::</p><details><summary>迄今为止到达过的地方</summary><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/maps.webp" alt="中国制霸" height="1920" width="1920"/></p></details><h2 id="">出发去拉萨</h2><p>这次比赛通知挺仓促的，9月30号教育部才发通知（至今官网不可查），承办校10月19号才发举办通知，这个时候才能开始买票走报销流程，购票的时候直达航班已经没有了，最后选了先坐廉航到西安中转，再坐西藏航空到拉萨的方案。</p><p>出发那天西安的光线非常足，落地的时候看见飞机影子挺好看的，角度也很合适，就顺便录了个视频。</p><video src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/VID_20241023_101357.webm" controls=""></video><p>下面是从西安咸阳到拉萨贡嘎拍的一些。</p><video src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/VID_20241023_150756.webm" controls=""></video><p>::: grid {cols=3,rows=3,gap=12,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241023_101147.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241023_094149.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_124641.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_154902.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_155038.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_134304.webp" height="1440" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_122801.webp" height="2560" width="1920"/>
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_162509.webp" height="2560" width="1920"/>
:::</p><p>西安飞拉萨的这一段可以看到高原的雪山，有一说一确实很漂亮<del>喵</del>，图 4 是雅鲁藏布江，图 5 是拉萨的城区，这布局真的是强迫症福音，太规整了。
下飞机的时候还有人接风（太高级了），对面给我们一行人进行了献<a href="https://zh.wikipedia.org/zh-hans/%E5%93%88%E8%BE%BE">哈达</a>。</p><p>说起来这次是我第一次坐 319（空客比波音安静多了），西藏航空标准涂装，安全须知有藏语，不知道是不是只有西藏航空才有。</p><p>不过给的餐食很普通，咖喱鸡饭 + 餐盒，饮料倒是给了西藏特色酥油茶。</p><h2 id="">抵达拉萨</h2><p>导游在路上唱藏歌。</p><video src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/VID_20241023_172941.webm" controls=""></video><p>住的地方也是非常棒，外面是雅鲁藏布江，向右还能直接望到布达拉宫。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184212.webp" alt="江景房" height="1442" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184339.webp" alt="窗外就是雅鲁藏布江" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_184302.webp" alt="在窗台能望见布达拉宫" height="1440" width="1920"/></p><p>虽然能直接望到布达拉宫，但还是有些距离的，毕竟不在一个区。</p><h2 id="">扭曲的家乡菜</h2><p>在万达看到了一家本来抱有一丝希望的跷脚牛肉。</p><p>结果是，事实证明不能指望在家乡以外吃到任何自称正宗的东西…..</p><p>::: grid {cols=4,rows=1,gap=12,type=images}
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_193652.webp" alt="MVIMG_20241023_193652.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_194521.webp" alt="MVIMG_20241023_194521.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_195841.webp" alt="MVIMG_20241023_195841.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_194908.webp" alt="MVIMG_20241023_194908.webp" height="1440" width="1920"/>
:::</p><p>在万达看见了熟悉的滚筒洗衣机（其实我至今仍不会玩）。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241023_203016.webp" alt="熟悉的滚筒洗衣机（万达二楼）" height="2560" width="1920"/></p><p>下面是一家湘菜馆的菜单，不难看出，新疆的物价不是一般的贵…堪比沪都。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/wx_camera_1729747558277.webp" alt="楼下一家湘菜馆的菜单" height="1920" width="1080"/></p><h2 id="">布达拉宫</h2><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_110912.webp" height="2560" width="1920"/></p>
<p>::: gallery
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_105346.webp" alt="MVIMG_20241027_105346.webp" height="1440" width="1920"/></p>
<p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_111810.webp" alt="MVIMG_20241027_111810.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_112241.webp" alt="MVIMG_20241027_112241.webp" height="1440" width="1920"/>
:::</p><p>走进了才发现布达拉宫的墙角其实是由草构成的。
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_113146.webp" height="2560" width="1920"/></p><p>中途的高度就和鸟肩并肩了。</p><video src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/VID_20241027_114008.webm" controls=""></video><p>抵达顶端部分。</p><p>::: gallery
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_114518.webp" alt="MVIMG_20241027_114518.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_122303.webp" alt="MVIMG_20241027_122303.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_122253.webp" alt="MVIMG_20241027_122253.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_124951.webp" alt="MVIMG_20241027_124951.webp" height="1440" width="1920"/>
:::</p>
<p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_123917.webp" alt="文创馆中唯一看上的却是非卖品" height="1440" width="1920"/></p><p>这个模型很还原，相比照片很容易看出布达拉宫是如何攀登上去的。
不过这个景点，如果不是朝圣或者历史爱好者的话，估计是不太会想来第二次的。</p><h2 id="">品鉴藏菜</h2><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_134113.webp" alt="吉祥措姆" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_141901.webp" alt="菜名：扎西德勒" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_144302.webp" alt="菜名：手抓羊排" height="1440" width="1920"/></p><p>藏菜（有些菜品和学校清真食堂差不多），扎西得嘞这个菜是真够坑的。</p><h2 id="">饭后加餐</h2><p>一行人都没吃的尽兴，于是晚上去恰了顿自助<del>烤肉</del>炒菜。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241028_123939.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_233047.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232753.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232728.webp" height="2560" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241107_232715.webp" height="2560" width="1920"/></p><p>我们这波人把烤肉吃成了炒菜。</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241027_210008.webp" height="1440" width="1920"/></p><p>晚上能从窗户望见点灯的布达拉宫，摄像头太拉了。</p><h2 id="">回程</h2><p>回程在贡嘎机场看见了现役战斗机飞过，一开始还以为是小型私人飞机，不得不说那发动机是真的猛</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/z30shb.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/MVIMG_20241028_121923.webp" alt="西藏限定双语麦当劳。" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_174955.webp" alt="地府机场 APM" height="2560" width="1920"/></p><p>这或许是半年来吃过最有四川味的面。
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_180417.webp" alt="两舱休息室的牛肉面" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_210635.webp" height="1440" width="1920"/></p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_213937.webp" height="1440" width="1920"/></p><p>无意在画面正中间拍到了世界第一烂尾楼。
<img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241029_230847.webp" alt="天津夜间上空——711 大厦" height="1440" width="1920"/></p><p>顺便把降落过程拍下来了</p><video src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/VID_20241029_232810.webm" controls=""></video><p>落地国际航站楼坐的摆渡车，一下飞机就吸上了天津的雾霾。</p><p>这次给我的感受就是，西藏物价是真的高，<del>但幸运的是可以报销（不然我就得吐血了）</del>（学校今年没预算了，餐补明年才给报销，已吐血），感受到了西藏人的纯朴。出门解锁新地点果然还是很棒，争取这几年能到全国多打卡一些地方吧~</p><p>抵达终点（此处距离我休息的地方不到 200m）</p><p><img src="https://assets.moedev.cn/blog/photo/images/2024/lhasa/IMG_20241030_003430.webp" height="2560" width="1920"/></p></div><p style="text-align:right"><a href="https://shiro.love/notes/8#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/notes/8</link><guid isPermaLink="true">https://shiro.love/notes/8</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Tue, 05 Nov 2024 00:31:46 GMT</pubDate></item><item><title><![CDATA[国庆这几天]]></title><description><![CDATA[<div><blockquote>该渲染由 Shiro API 生成，可能存在排版问题，最佳体验请前往：<a href="https://shiro.love/notes/2">https://shiro.love/notes/2</a></blockquote><div><p>10月2日
又是一觉睡到了中午 12 点的一天～ 午饭尝试了一下美团校园送，在这之前外卖都得去校门口自提，现在日子也是逐渐好起来了。下午去教学楼实训室待了一会，没干成什么事。晚上看了会前端的东西，然后整理更新了一下各种服务的 ssl 证书，尽可能的都上自动化了。今天也是下定决心要写博客的一天（</p><p>10月3日
今天国庆假期第三天，时间所剩无几了
早上 11:49 起床，睡得比较久但起床后仍感到头晕。中午在食堂吃了茴香水饺，之后去技能训练中心整理备赛资料和初稿，讨论项目展示时选择使用 OneDrive 代替免费只能上传 10Mb 小文件的腾讯文档和金山文档。傍晚带了实训室的葡萄回寝室，去食堂吃了椒麻炒鸡。晚上研究 SSL 证书的自动化，自己用 Python 编写了一个脚本，写到凌晨三点才基本完成，有些逻辑需要优化。凌晨 4:07 和一位久未联系的网友聊了天，准备睡觉。
祝好眠🌙</p></div><p style="text-align:right"><a href="https://shiro.love/notes/2#comments">看完了？说点什么呢</a></p></div>]]></description><link>https://shiro.love/notes/2</link><guid isPermaLink="true">https://shiro.love/notes/2</guid><dc:creator><![CDATA[Shiro]]></dc:creator><pubDate>Wed, 02 Oct 2024 17:59:48 GMT</pubDate></item></channel></rss>