<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>所有文章 - 多多小站</title><link>https://blog.share4y.cn/posts/</link><description>所有文章 | 多多小站</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Wed, 19 Nov 2025 11:24:12 +0800</lastBuildDate><atom:link href="https://blog.share4y.cn/posts/" rel="self" type="application/rss+xml"/><item><title>【排查实录】Curl 通但 Node 不通？一次 macOS、旁路由与 EHOSTUNREACH 的填坑记</title><link>https://blog.share4y.cn/2025/11/troubleshooting-record-curl-works-but-node-doesn-t-work-a-note-on-filling-in-the-pitfalls-of-macos-bypass-routers-and-ehostunreach/</link><pubDate>Wed, 19 Nov 2025 11:24:12 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2025/11/troubleshooting-record-curl-works-but-node-doesn-t-work-a-note-on-filling-in-the-pitfalls-of-macos-bypass-routers-and-ehostunreach/</guid><description><![CDATA[<h2 id="背景">背景</h2>
<p>最近在使用 <code>claude code</code> (Anthropic 官方命令行工具) 连接局域网内的自建 API 网关时，遇到了一个极其诡异的网络问题。</p>
<p><strong>环境坐标：</strong></p>
<ul>
<li><strong>OS</strong>: macOS Sequoia (Mac Mini)</li>
<li><strong>Shell</strong>: Tmux + Zsh</li>
<li><strong>网络拓扑</strong>: 典型的<strong>旁路由</strong>架构
<ul>
<li>主路由: <code>192.168.1.1</code></li>
<li>旁路由 (网关): <code>192.168.1.9</code> (负责科学上网等)</li>
<li>本机 IP: <code>192.168.1.8</code></li>
<li>目标 API 服务器: <code>192.168.1.31</code></li>
</ul>
</li>
</ul>
<h2 id="诡异的现象">诡异的现象</h2>
<p>在 Tmux 中运行 <code>claude</code>，报错连接失败。为了排查，我写了一个最简单的 Node.js 测试脚本 (<code>http.get</code>)，结果报出 <code>EHOSTUNREACH</code>。</p>]]></description></item><item><title>多个vscode窗口打开同一个目录文件夹</title><link>https://blog.share4y.cn/2025/10/multiple-vscode-windows-open-the-same-directory-folder/</link><pubDate>Wed, 15 Oct 2025 22:58:56 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2025/10/multiple-vscode-windows-open-the-same-directory-folder/</guid><description><![CDATA[<ol>
<li>File-&gt;Duplicate Workspace 复制一个工作区, 会打开个新窗口</li>
</ol>
<p></p>
<ol start="2">
<li>左下角<strong>齿轮</strong>-&gt;Profile-&gt;Profiles新建一个配置,然后选择</li>
</ol>
<p></p>]]></description></item><item><title>如何常感动</title><link>https://blog.share4y.cn/2025/10/often-moved/</link><pubDate>Wed, 15 Oct 2025 15:40:56 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2025/10/often-moved/</guid><description><![CDATA[<ul>
<li>我记得cover赵雷 Cherry小红樱桃</li>
</ul>
<blockquote>
<p>歌詞講了這樣一個故事：這一世，我帶著行李（胎盤）遊入尼羅河（生命之河，也可能是指羊水），到被站著的幾個人（也就是醫生）剪掉行李（臍帶），看到光圈（手術燈）到聽到母親的聲音，句句不提母親，但句句都是帶著前世記憶找到了母親，夙願達成，再次見到母親，自己記得前三世所有的記憶，母親卻不知道，所以是失憶著相遇。 然後開始倒敘，這些是描述前世三次和母親遇見的故事，分別是一起長大的青梅竹馬，慈祥的叔父和可愛的小侄女，以及被戰爭分開的戀人，這三次和母親轉世相遇，都是沒有帶著任何記憶的，直到這一次我又成為了母親的兒子，我才一下子回憶起前幾世的事情。
繼續倒敘，第三世結束后，即將再次見到母親的第四世的路上，遇到了早已故去的外婆，她和母親長得很像，告訴我很多母親還是小孩子一路成長的故事，然後還告訴我，雖然母親故去了，和她一起在彼岸，但是從未停止過對我的思念&hellip;. （這一段尤其感人，理解到時直接淚崩了）
最後和這一世的母親相遇後，我釋然了，我明白時空是一個迴圈，不管怎麼樣，不管多少世，母親都會以不同的角色陪在我身邊，即使我們可能互相不認識，但是我們的之間的緣分永遠不會停止，這就是最後一句歌詞， 人們失憶著相聚的意思</p>]]></description></item><item><title>时隔5年, 再次启程</title><link>https://blog.share4y.cn/2025/10/first-article-in-2025/</link><pubDate>Sat, 11 Oct 2025 21:59:54 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2025/10/first-article-in-2025/</guid><description>&lt;p>人和事, 身和心都在飞速向前, 谨作纪念吧&lt;/p></description></item><item><title>win10系统主机路由添加删除</title><link>https://blog.share4y.cn/2021/03/win10-system-host-route-add-and-delete/</link><pubDate>Fri, 05 Mar 2021 21:58:46 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2021/03/win10-system-host-route-add-and-delete/</guid><description><![CDATA[<h2 id="查看路由接口号">查看路由接口号</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">C:\WINDOWS\system32&gt;route print -4
</span></span><span class="line"><span class="cl">===========================================================================
</span></span><span class="line"><span class="cl">接口列表
</span></span><span class="line"><span class="cl"> 18...00 ff b1 52 a3 ed ......TAP-Windows Adapter V9
</span></span><span class="line"><span class="cl"> 19...b0 25 aa 27 b2 69 ......Realtek PCIe GbE Family Controller
</span></span><span class="line"><span class="cl"> 23...7c 76 35 e3 d5 2e ......Microsoft Wi-Fi Direct Virtual Adapter
</span></span><span class="line"><span class="cl"> 13...7e 76 35 e3 d5 2d ......Microsoft Wi-Fi Direct Virtual Adapter #2
</span></span><span class="line"><span class="cl"> 21...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
</span></span><span class="line"><span class="cl"> 20...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
</span></span><span class="line"><span class="cl"> 17...7c 76 35 e3 d5 2d ......Intel(R) Wireless-AC 9462
</span></span><span class="line"><span class="cl"> 16...7c 76 35 e3 d5 31 ......Bluetooth Device (Personal Area Network)
</span></span><span class="line"><span class="cl">  1...........................Software Loopback Interface 1
</span></span><span class="line"><span class="cl">===========================================================================
</span></span></code></pre></td></tr></table>
</div>
</div><p>上面接口列表中的18,19,23,13就是接口号，添加主机路由时对应的参数if</p>]]></description></item><item><title>ubuntu18.04 root权限下的pycharm输入中文</title><link>https://blog.share4y.cn/2021/02/ubuntu18.04-pycharm-input-chinese-under-root-authority/</link><pubDate>Sat, 06 Feb 2021 11:02:36 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2021/02/ubuntu18.04-pycharm-input-chinese-under-root-authority/</guid><description><![CDATA[<p>在<code>pycharm.sh</code>中添加以下内容</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-gdscript3" data-lang="gdscript3"><span class="line"><span class="cl"><span class="k">export</span> <span class="n">GTK_IM_MODULE</span><span class="o">=</span><span class="n">fcitx</span>
</span></span><span class="line"><span class="cl"><span class="k">export</span> <span class="n">QT_IM_MODULE</span><span class="o">=</span><span class="n">fcitx</span>
</span></span><span class="line"><span class="cl"><span class="k">export</span> <span class="n">XMODIFIERS</span><span class="o">=</span><span class="err">@</span><span class="n">im</span><span class="o">=</span><span class="n">fcitx</span>
</span></span></code></pre></td></tr></table>
</div>
</div>]]></description></item><item><title>ubuntu18.04桌面版备忘</title><link>https://blog.share4y.cn/2020/11/ubuntu18.04-desktop-version-memo/</link><pubDate>Sun, 29 Nov 2020 11:53:07 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2020/11/ubuntu18.04-desktop-version-memo/</guid><description><![CDATA[<h3 id="自启动">自启动</h3>
<p>在活动视图里，打开<code>启动应用程序</code>，您还可以按组合键 <code>Alt+F2</code>，然后运行 <code>gnome-session-properties</code> 命令。</p>]]></description></item><item><title>win10指令备忘</title><link>https://blog.share4y.cn/2020/11/win10-command-memo/</link><pubDate>Fri, 20 Nov 2020 11:28:24 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2020/11/win10-command-memo/</guid><description><![CDATA[<h3 id="打开win10的启动目录">打开win10的启动目录</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">shell:Common Startup
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="ie启动时最大化">IE启动时最大化</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">iexplore.exe -k
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="chrome启动最大化">chrome启动最大化</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">&#34;C:\Program Files\Google\Chrome\Application\chrome.exe&#34; -kiosk http://127.0.0.1:8080/index.html#/home
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="vmware自启动">VMware自启动</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">&#34;C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe&#34; start &#34;D:\Virtual Machines\Ubuntu64\Ubuntu64.vmx&#34; nogui
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="win10专业版没有自支登录选项">win10专业版没有自支登录选项</h3>
<p>用<code>Control Userpasswords2</code>命令进入配置界面
如图：

需要修改注册表,将下的的内容保存到.reg文件后双击导入</p>]]></description></item><item><title>vmware复制出来的ubuntu虚拟机dhcp获取不到新IP的问题</title><link>https://blog.share4y.cn/2020/11/virtual-machine-dhcp-copied-by-vmware-cannot-obtain-new-ip/</link><pubDate>Thu, 19 Nov 2020 17:21:50 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2020/11/virtual-machine-dhcp-copied-by-vmware-cannot-obtain-new-ip/</guid><description><![CDATA[<p>需要修改<code>/etc/netplan/50-cloud-init.yaml</code>,将工作网卡上加入以下设定</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">network:
</span></span><span class="line"><span class="cl">  version: 2
</span></span><span class="line"><span class="cl">  ethernets:
</span></span><span class="line"><span class="cl">    enp3s0:
</span></span><span class="line"><span class="cl">      dhcp4: yes
</span></span><span class="line"><span class="cl">      dhcp-identifier: mac // 这是新加的
</span></span></code></pre></td></tr></table>
</div>
</div><ul>
<li>参考：https://unix.stackexchange.com/questions/419321/why-are-my-cloned-linux-vms-fighting-for-the-same-ip</li>
</ul>]]></description></item><item><title>linux网络调试常用指令</title><link>https://blog.share4y.cn/2020/11/common-commands-for-linux-network-debugging/</link><pubDate>Wed, 11 Nov 2020 17:28:34 +0800</pubDate><author>prehisle</author><guid>https://blog.share4y.cn/2020/11/common-commands-for-linux-network-debugging/</guid><description><![CDATA[<h3 id="清空arp缓存">清空arp缓存</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">ip -s -s neigh flush all
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="snat">SNAT</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">iptables -t nat -I POSTROUTING -s 192.168.23.232/32 -j SNAT --to 192.168.23.1
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="shell设置当前目录为环境变量">shell设置当前目录为环境变量</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-gdscript3" data-lang="gdscript3"><span class="line"><span class="cl"><span class="k">export</span> <span class="n">PYTHONPATH</span><span class="o">=$</span><span class="p">(</span><span class="n">pwd</span><span class="p">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="iptables日志调试">iptables日志调试</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">iptables -t mangle -I PREROUTING -p udp --dport 5060 -j log
</span></span></code></pre></td></tr></table>
</div>
</div>]]></description></item></channel></rss>