<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>沙计算</title>
	<atom:link href="https://www.sandcomp.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sandcomp.com/blog</link>
	<description>一沙一世界</description>
	<lastBuildDate>Sat, 18 Oct 2025 01:59:41 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">178978102</site>	<item>
		<title>新功能速递：可调“照片间距”设置</title>
		<link>https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/</link>
					<comments>https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/#respond</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Thu, 16 Oct 2025 09:41:10 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=1086</guid>

					<description><![CDATA[<p>应多位用户的反馈，我在表单中新增了 「照片间距」 选项。 现在，你可以自定义打印 &#8230; <a href="https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/">新功能速递：可调“照片间距”设置</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>应多位用户的反馈，我在表单中新增了 <strong>「照片间距」</strong> 选项。</p>



<p>现在，你可以自定义打印时的照片间距，让裁切更轻松、更整齐。</p>



<p><strong>功能入口</strong>：<a href="https://www.sandcomp.com/blog/sandphoto/" title="">表单</a> → 「间距（毫米）」</p>



<p><strong>推荐设置</strong>：5–10 mm（裁切更方便）</p>



<p>感谢大家一直以来的反馈与支持！</p>



<p>如果你有新的功能建议，欢迎在留言区中告诉我。</p><p>The post <a href="https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/">新功能速递：可调“照片间距”设置</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2025/10/16/%e6%96%b0%e5%8a%9f%e8%83%bd%e9%80%9f%e9%80%92%ef%bc%9a%e5%8f%af%e8%b0%83%e7%85%a7%e7%89%87%e9%97%b4%e8%b7%9d%e8%ae%be%e7%bd%ae/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1086</post-id>	</item>
		<item>
		<title>证件照片排版在线生成器 – 新增多照片模式</title>
		<link>https://www.sandcomp.com/blog/2025/09/10/%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-%e6%96%b0%e5%a2%9e%e5%a4%9a%e7%85%a7%e7%89%87%e6%a8%a1%e5%bc%8f/</link>
					<comments>https://www.sandcomp.com/blog/2025/09/10/%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-%e6%96%b0%e5%a2%9e%e5%a4%9a%e7%85%a7%e7%89%87%e6%a8%a1%e5%bc%8f/#comments</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Thu, 11 Sep 2025 06:40:20 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=1080</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<div class="wp-block-jetpack-markdown"><p>很多朋友希望能一次排版多张不同的证件照。现在，这个功能已经上线了：</p>
<ul>
<li>在第 5 步选择 <strong>多照片模式</strong></li>
<li>可以上传多张照片，并为每张照片设置打印份数</li>
<li>所有处理都在本地完成，照片不会上传，安全又快捷</li>
</ul>
<p>适合全家办证、多个用途照片一次搞定。</p>
<p>另外，这次更新里我顺便把输出分辨率提高到了 <strong>600 DPI</strong>，打印出来会更清晰。</p>
<p>欢迎大家体验，并把使用反馈告诉我！</p>
</div>



<p> </p><p>The post <a href="https://www.sandcomp.com/blog/2025/09/10/%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-%e6%96%b0%e5%a2%9e%e5%a4%9a%e7%85%a7%e7%89%87%e6%a8%a1%e5%bc%8f/">证件照片排版在线生成器 – 新增多照片模式</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2025/09/10/%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-%e6%96%b0%e5%a2%9e%e5%a4%9a%e7%85%a7%e7%89%87%e6%a8%a1%e5%bc%8f/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1080</post-id>	</item>
		<item>
		<title>在国内外自由访问常用服务的网络优化经验分享</title>
		<link>https://www.sandcomp.com/blog/2025/07/24/%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab/</link>
					<comments>https://www.sandcomp.com/blog/2025/07/24/%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab/#respond</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Fri, 25 Jul 2025 03:31:04 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=1067</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<div class="wp-block-jetpack-markdown"><h2>前言</h2>
<p>我常年在国外生活，喜欢在喜马拉雅上听有声书、广播剧放松一下。但有些资源在海外受限，不能直接收听，挺不方便的。
反过来，每次回国探亲时，我日常使用的 Gmail、Google Docs、YouTube、ChatGPT 等服务又经常无法访问，生活和工作都受到影响。</p>
<p>尝试过一些付费 VPN 或加速服务，但要么价格不低，要么稳定性不佳。于是我开始研究一些网络优化方案，自己动手搭建「双向访问」环境，既能在国外用国内的应用，又能在国内访问常用的国际网站。</p>
<p>这篇文章算是我的经验记录，分享一些技术思路和工具，帮助有类似需求的人少走弯路。所有方法仅用于个人学习和网络优化，请勿用于违反平台政策的用途。</p>
<hr>
<h2>Part 1：国外访问国内资源（Shadowsocks + 阿里云 ECS）</h2>
<h3>步骤 1：购买阿里云 ECS</h3>
<ol>
<li>登录 <a href="https://www.aliyun.com/">阿里云官网</a>。</li>
<li>注册并完成实名认证。</li>
<li>选择 “云服务器 ECS” -&gt; “立即购买”。</li>
<li>选择 <strong>地域：北京、杭州或上海</strong>。</li>
<li>系统镜像：<strong>Ubuntu 22.04 LTS</strong>。</li>
<li>配置：1核 1GB 内存即可，带宽选 1~3 Mbps。</li>
<li>确认订单并购买。</li>
</ol>
<blockquote>
<p><strong>提示：</strong> 不需要备案，因为这里只是跑代理服务。</p>
</blockquote>
<h3>步骤 2：安装 Shadowsocks 服务端</h3>
<p>SSH 登录服务器：</p>
<pre><code class="language-bash">ssh root@&lt;你的ECS公网IP&gt;
</code></pre>
<p>更新系统并安装 Shadowsocks：</p>
<pre><code class="language-bash">sudo apt update &amp;&amp; sudo apt upgrade -y
sudo apt install shadowsocks-libev -y
</code></pre>
<p>配置 <code>/etc/shadowsocks-libev/config.json</code>：</p>
<pre><code class="language-json">{
  &quot;server&quot;:&quot;0.0.0.0&quot;,
  &quot;server_port&quot;:8388,
  &quot;password&quot;:&quot;&lt;your_password&gt;&quot;,  // 请替换为自己的密码
  &quot;timeout&quot;:300,
  &quot;method&quot;:&quot;aes-256-gcm&quot;
}
</code></pre>
<p>启动 Shadowsocks：</p>
<pre><code class="language-bash">sudo systemctl enable shadowsocks-libev
sudo systemctl restart shadowsocks-libev
</code></pre>
<h3>步骤 3：安全组与防火墙</h3>
<ul>
<li>阿里云控制台 -&gt; ECS -&gt; 安全组 -&gt; 添加规则：开放 TCP/UDP 8388 端口。</li>
<li>服务器：</li>
</ul>
<pre><code class="language-bash">sudo ufw allow 8388/tcp
sudo ufw allow 8388/udp
sudo ufw enable
</code></pre>
<h3>步骤 4：客户端配置</h3>
<h4>iPhone/iPad（Shadowrocket）</h4>
<ol>
<li>
<p>从 App Store 下载 Shadowrocket（付费应用，价格合理）。</p>
</li>
<li>
<p>添加服务器：</p>
<ul>
<li>类型：Shadowsocks</li>
<li>地址：你的 ECS IP</li>
<li>端口：8388</li>
<li>密码：&lt;your_password&gt;</li>
<li>加密：aes-256-gcm</li>
</ul>
</li>
<li>
<p>导入“回国规则”：</p>
<ul>
<li>电脑打开 <a href="https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever?tab=readme-ov-file#%E5%9B%9E%E5%9B%BD%E8%A7%84%E5%88%99">回国规则链接</a></li>
<li>Shadowrocket -&gt; 配置 -&gt; 点击右上角二维码 -&gt; 扫描电脑上的二维码。</li>
</ul>
</li>
</ol>
<h4>macOS/Windows（Clash Verge）</h4>
<ol>
<li>下载 <a href="https://github.com/zzzgydi/clash-verge">Clash Verge</a>。</li>
<li>编辑 <code>config.yaml</code> 文件：</li>
</ol>
<pre><code class="language-yaml">port: 7890
socks-port: 7891
allow-lan: true
mode: rule
log-level: info
proxies:
  - name: &quot;CN-SS&quot;
    type: ss
    server: &lt;你的ECS IP&gt;
    port: 8388
    cipher: aes-256-gcm
    password: &lt;your_password&gt;
proxy-groups:
  - name: &quot;Proxy&quot;
    type: select
    proxies:
      - &quot;CN-SS&quot;
      - DIRECT
rules:
  - DOMAIN-SUFFIX,ximalaya.com,Proxy
  - DOMAIN-SUFFIX,bilibili.com,Proxy
  - GEOIP,CN,Proxy
  - MATCH,DIRECT
</code></pre>
<ol start="3">
<li>Clash Verge -&gt; 配置文件 -&gt; 导入该 YAML 文件。</li>
</ol>
<hr>
<h2>Part 2：国内访问国际资源（V2Ray + TLS + WS + AWS EC2）</h2>
<h3>为什么要配置域名和 SSL 证书？</h3>
<p>TLS 可以伪装成普通 HTTPS 流量，避免被拦截。域名与证书让服务更稳定、安全。</p>
<h3>步骤 1：AWS EC2</h3>
<ol>
<li>注册 <a href="https://aws.amazon.com/">AWS</a>。</li>
<li>创建 Ubuntu 24.04 LTS 实例，开放 80/443 端口。</li>
</ol>
<h3>步骤 2：域名与 SSL（Certbot）</h3>
<ol>
<li>将域名解析到 EC2 IP。</li>
<li>安装 Nginx 与 Certbot：</li>
</ol>
<pre><code class="language-bash">sudo apt install nginx certbot python3-certbot-nginx -y
sudo certbot --nginx -d your_domain.com
</code></pre>
<h3>步骤 3：安装 V2Ray 并生成 UUID</h3>
<pre><code class="language-bash">cat /proc/sys/kernel/random/uuid  # 复制UUID
bash &lt;(curl -Ls https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
</code></pre>
<p>编辑 <code>/usr/local/etc/v2ray/config.json</code> 并替换 <code>&lt;your-uuid&gt;</code>。</p>
<h3>步骤 4：Nginx 反向代理</h3>
<p>配置 <code>/etc/nginx/sites-enabled/default</code>：</p>
<pre><code class="language-nginx">location /ray {
    proxy_pass http://127.0.0.1:10000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection &quot;upgrade&quot;;
}
</code></pre>
<h3>步骤 5：客户端配置</h3>
<h4>Shadowrocket</h4>
<ul>
<li>类型：Vmess</li>
<li>地址：your_domain.com</li>
<li>端口：443</li>
<li>用户ID：&lt;your-uuid&gt;</li>
<li>TLS：开启</li>
<li>路径：/ray</li>
</ul>
<h4>Clash Verge 示例：</h4>
<pre><code class="language-yaml">proxies:
  - name: &quot;US-V2Ray&quot;
    type: vmess
    server: your_domain.com
    port: 443
    uuid: &lt;your-uuid&gt;
    tls: true
    network: ws
    ws-opts:
      path: /ray
</code></pre>
<hr>
<h2>总结</h2>
<p>通过这套方案，我在国外能用喜马拉雅、Bilibili；回国时 Gmail、Google、YouTube 也能正常访问。如果你有疑问或建议，欢迎在留言区分享你的想法！</p>
</div><p>The post <a href="https://www.sandcomp.com/blog/2025/07/24/%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab/">在国内外自由访问常用服务的网络优化经验分享</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2025/07/24/%e5%9c%a8%e5%9b%bd%e5%86%85%e5%a4%96%e8%87%aa%e7%94%b1%e8%ae%bf%e9%97%ae%e5%b8%b8%e7%94%a8%e6%9c%8d%e5%8a%a1%e7%9a%84%e7%bd%91%e7%bb%9c%e4%bc%98%e5%8c%96%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1067</post-id>	</item>
		<item>
		<title>发布「证件照片排版在线生成器 2.0」</title>
		<link>https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/</link>
					<comments>https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/#respond</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Tue, 15 Jul 2025 10:00:15 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=1036</guid>

					<description><![CDATA[<p>这件事一直在我的计划里，今天终于把「证件照片排版在线生成器 2.0」正式发布啦！ &#8230; <a href="https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/">发布「证件照片排版在线生成器 2.0」</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>这件事一直在我的计划里，今天终于把「证件照片排版在线生成器 2.0」正式发布啦！</p>



<p>新版采用了纯客户端实现，所有照片都在本地设备上处理，无需上传到服务器，更好地保护了隐私，速度也更快。同时，还新增了一个很多用户一直在提的功能：可以自由选择生成的照片数量，使用起来更加灵活。</p>



<p>欢迎大家试用！如果有任何问题或建议，欢迎随时反馈。项目的源代码也已经开源到 <a href="https://github.com/gmajian/sandphoto-js" title="">GitHub</a>，欢迎 star 或贡献！</p>



<p>另外，我还用 Google 的 NotebookLM 生成了一段介绍，分享了这个工具的设计思路和一些用户的真实反馈评论，感兴趣的话可以一起看看。</p>



<p></p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="证件照片排版在线生成器" width="640" height="480" src="https://www.youtube.com/embed/_J804dZjpRo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure><p>The post <a href="https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/">发布「证件照片排版在线生成器 2.0」</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2025/07/15/%e5%8f%91%e5%b8%83%e3%80%8c%e8%af%81%e4%bb%b6%e7%85%a7%e7%89%87%e6%8e%92%e7%89%88%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e5%99%a8-2-0%e3%80%8d/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1036</post-id>	</item>
		<item>
		<title>用EcoFlow River 3 Plus作UPS: 如何配置  Synology NAS</title>
		<link>https://www.sandcomp.com/blog/2025/06/22/%e7%94%a8ecoflow-river-3-plus%e4%bd%9cups-%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae-synology-nas/</link>
					<comments>https://www.sandcomp.com/blog/2025/06/22/%e7%94%a8ecoflow-river-3-plus%e4%bd%9cups-%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae-synology-nas/#comments</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Sun, 22 Jun 2025 21:49:31 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=938</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<p></p>



<p></p>



<div class="wp-block-jetpack-markdown"><p>EcoFlow River 3 Plus 是一款便携式电源，除了常规的户外电源功能外，它也可以作为 UPS 使用。相比传统铅酸电池 UPS，EcoFlow 具有以下优势：</p>
<ul>
<li>更大的容量（如 286Wh）</li>
<li>更轻便易携带</li>
<li>提供远程管理功能（如 App 或 Web 界面）</li>
</ul>
<p>然而，在将其连接到 Synology NAS 作为 UPS 使用时，很多用户会发现系统无法识别该设备，即使已经安装了 EcoFlow 官方的 Power Manager for NAS 套件也无济于事。本文将详细分析原因，并提供可行的解决方案。</p>
<hr>
<h2>问题分析</h2>
<p>在调试过程中，我发现出现兼容性问题的主要原因如下：</p>
<ol>
<li>
<p><strong>USB 无法识别</strong>：Synology DSM 内置的 NUT（Network UPS Tools）版本较旧，可能无法识别 EcoFlow 作为 USB UPS。</p>
</li>
<li>
<p><strong>端口不一致</strong>：EcoFlow Power Manager 使用端口 <code>3496</code> 提供 UPS 服务，而 Synology 默认监听端口为 <code>3493</code>。</p>
</li>
<li>
<p><strong>设备命名不同</strong>：Synology 假设远程 UPS 名为 <code>ups</code>，但 EcoFlow 默认使用的设备名是 <code>nutdev1</code>。</p>
</li>
</ol>
<hr>
<h2>快速解决方案概览</h2>
<p>为了解决上述兼容问题，我们可以通过手动修改 EcoFlow Power Manager for NAS 套件中的部分配置文件来实现对 Synology UPS 服务的兼容。</p>
<p>以下是核心修改：</p>
<ul>
<li>将 EcoFlow 服务端口从 3496 改为 3493</li>
<li>将设备名 <code>nutdev1</code> 修改为 <code>ups</code></li>
<li>重启 Power Manager 服务，使修改生效</li>
</ul>
<hr>
<h2>操作步骤详解（以 DSM 7.x 为例）</h2>
<p><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>操作前请备份相关文件，确保有基本的 SSH 操作能力。以下路径基于默认安装位置。</strong></p>
<h3>1. 安装 Power Manager 套件</h3>
<p>前往 EcoFlow 官网下载安装：
<a href="https://www.ecoflow.com/us/support/download/index">https://www.ecoflow.com/us/support/download/index</a></p>
<h3>2. 修改 run.sh 文件</h3>
<p>路径：<code>/volume1/@appstore/PowerManagerNUT/usr/local/bin/nas/run.sh</code></p>
<p><strong>将以下内容：</strong></p>
<pre><code class="language-sh">output=$(sudo $BASE_DIR/bin/upsc nutdev1@127.0.0.1:3496 2&gt;&amp;1)
</code></pre>
<p><strong>修改为：</strong></p>
<pre><code class="language-sh">output=$(sudo $BASE_DIR/bin/upsc ups@127.0.0.1:3493 2&gt;&amp;1)
</code></pre>
<h3>3. 修改 upsd.conf 配置</h3>
<p>路径：<code>/volume1/@appstore/PowerManagerNUT/usr/local/bin/nas/x86_64-pc-linux-gnu-nut-server/etc/upsd.conf</code></p>
<p><strong>将以下内容：</strong></p>
<pre><code class="language-conf">LISTEN 0.0.0.0 3496
</code></pre>
<p><strong>修改为：</strong></p>
<pre><code class="language-conf">LISTEN 0.0.0.0 3493
</code></pre>
<h3>4. 修改 <code>ups.conf</code></h3>
<p>路径: <code>/volume1/@appstore/PowerManagerNUT/usr/local/bin/nas/x86_64-pc-linux-gnu-nut-server/etc/ups.conf</code></p>
<p><strong>修改一下内容：</strong></p>
<pre><code class="language-conf">[nutdev1]
</code></pre>
<p><strong>修改为：</strong></p>
<pre><code class="language-conf">[ups]
</code></pre>
<h3>5. 修改 eco_shutdown.sh 脚本</h3>
<p>路径：<code>/volume1/@appstore/PowerManagerNUT/usr/local/bin/nas/x86_64-pc-linux-gnu-nut-server/script/eco_shutdown.sh</code></p>
<p><strong>将以下内容：</strong></p>
<pre><code class="language-sh">status=$(/var/packages/PowerManagerNUT/target/usr/local/bin/nas/x86_64-pc-linux-gnu-nut-server/bin/upsc nutdev1@localhost:3496 ups.status 2&gt;/dev/null)
</code></pre>
<p><strong>修改为：</strong></p>
<pre><code class="language-sh">status=$(/var/packages/PowerManagerNUT/target/usr/local/bin/nas/x86_64-pc-linux-gnu-nut-server/bin/upsc ups@localhost:3493 ups.status 2&gt;/dev/null)
</code></pre>
<h3>5. 重启 Power Manager 服务</h3>
<p>你可以通过“套件中心”手动重启 Power Manager NUT。</p>
<hr>
<h2>在 Synology DSM 中配置 UPS 客户端</h2>
<ol>
<li>打开 DSM 控制面板 -&gt; 硬件与电源 -&gt; UPS</li>
<li>选择“Synology UPS 服务器”模式</li>
<li>填入当前这台 NAS 的 IP 地址作为 UPS 服务器地址</li>
<li>应用设置后，NAS 应该能够识别来自 EcoFlow 的 UPS 状态</li>
</ol>
<p>你也可以在终端中运行以下命令验证：</p>
<pre><code class="language-sh">upsc ups@localhost:3493
</code></pre>
<hr>
<h2>注意事项与后续建议</h2>
<ul>
<li>上述修改可能会在 EcoFlow Power Manager 套件或 DSM 更新时被覆盖。</li>
<li>如果你有多台 NAS，希望将 EcoFlow UPS 共享给其他设备，可以在其它NAS上配置UPS使用Synlogy UPS 服务，IP 地址填写本台NAS的地址。</li>
<li>长期建议关注 DSM 或 EcoFlow 对 NUT 的支持情况，以便后续采用原生支持方式。</li>
</ul>
<hr>
<h2>参考资料</h2>
<ul>
<li><a href="https://github.com/networkupstools/nut/issues/2735">Networkupstools github 相关Issue</a></li>
<li>Reddit社区 <a href="https://www.reddit.com/r/synology/comments/1hjlhcc/finally_a_good_lifepo4_ups_but_issue_with_synology/">讨论1</a>. <a href="https://www.reddit.com/r/Ecoflow_community/comments/1hjl65e/river_3_plus_and_hid_ups_driver_with_synology/">讨论2</a> <a href="https://www.reddit.com/r/Ecoflow_community/comments/1hkfo3h/network_ups_tools_nut_compatibility_for_new_ups/">讨论3</a></li>
<li><a href="https://www.ecoflow.com/us/support/download/index">EcoFlow 下载中心</a></li>
</ul>
<hr>
<p>如果你在设置过程中遇到问题，欢迎在评论区留言交流，也欢迎分享你使用其他便携电源作为 UPS 的经验。</p>
</div>



<p></p><p>The post <a href="https://www.sandcomp.com/blog/2025/06/22/%e7%94%a8ecoflow-river-3-plus%e4%bd%9cups-%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae-synology-nas/">用EcoFlow River 3 Plus作UPS: 如何配置  Synology NAS</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2025/06/22/%e7%94%a8ecoflow-river-3-plus%e4%bd%9cups-%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae-synology-nas/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">938</post-id>	</item>
		<item>
		<title>我的特斯拉引荐码</title>
		<link>https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/</link>
					<comments>https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/#comments</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Thu, 13 Jul 2023 23:18:48 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=837</guid>

					<description><![CDATA[<p>自从去年购买了特斯拉的Model 3，我和我的妻子都非常喜欢开特斯拉。一方面，这 &#8230; <a href="https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/">我的特斯拉引荐码</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>自从去年购买了特斯拉的Model 3，我和我的妻子都非常喜欢开特斯拉。一方面，这样我们可以省下不少汽油费用；另一方面，相比我们家里的传统燃油车，特斯拉确实更加好开。</p>



<p>目前，特斯拉已经重新启动了推荐码计划。如果你在购买特斯拉时使用了我的推荐码，你可以节省500-1000美元，而我也将获得积分，可以用来兑换礼物，实现双赢的局面。</p>



<p>以下是我的推荐码链接：<a href="https://ts.la/jian860588">https://ts.la/jian860588</a>。如果有任何问题，请在留言中告知我。</p>



<p>非常感谢您的支持！</p><p>The post <a href="https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/">我的特斯拉引荐码</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2023/07/13/%e6%88%91%e7%9a%84%e7%89%b9%e6%96%af%e6%8b%89%e5%bc%95%e8%8d%90%e7%a0%81/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">837</post-id>	</item>
		<item>
		<title>今天迁移了网站，大家发现了什么问题请留言</title>
		<link>https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/</link>
					<comments>https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/#comments</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Sun, 20 Nov 2022 08:57:15 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.sandcomp.com/blog/?p=796</guid>

					<description><![CDATA[<p>今天把网站从Azure迁移到了AWS，操作系统从Ubuntu 18.04升级到了 &#8230; <a href="https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/">今天迁移了网站，大家发现了什么问题请留言</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>今天把网站从Azure迁移到了AWS，操作系统从Ubuntu 18.04升级到了22.04， WordPress也升级到了最新。大家使用的时候遇到什么问题请给我留言， 谢谢。</p><p>The post <a href="https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/">今天迁移了网站，大家发现了什么问题请留言</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2022/11/20/%e4%bb%8a%e5%a4%a9%e8%bf%81%e7%a7%bb%e4%ba%86%e7%bd%91%e7%ab%99%ef%bc%8c%e5%a4%a7%e5%ae%b6%e5%8f%91%e7%8e%b0%e4%ba%86%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%e8%af%b7%e7%95%99%e8%a8%80/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">796</post-id>	</item>
		<item>
		<title>Mint 擦地机器人复活记</title>
		<link>https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/</link>
					<comments>https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/#comments</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Wed, 08 Jan 2014 16:15:40 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.sandcomp.com/blog/?p=447</guid>

					<description><![CDATA[<p>Mint 5200曾经是我家任劳任怨的擦地机器人， 自从买了她之后，我就从繁重的 &#8230; <a href="https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/">Mint 擦地机器人复活记</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Mint 5200曾经是我家任劳任怨的擦地机器人， 自从买了她之后，我就从繁重的擦地劳动中解脱出来了。 她是由 <a href="http://en.wikipedia.org/wiki/Evolution_Robotics" target="_blank">Evolution Robotics</a>公司生产。 该公司于2012年被iRobot公司收购， Mint系列机器人更名为 iRobot Braava机器人。 她不同于iRobot的吸尘器机器人， 可以像聪明的一休一样，用湿抹布把地板擦干净。</p>
<p>突然有一天， Mint 5200在工作的时候红灯亮起， 并发出嘟嘟声， 她也并没有被东西卡住，就是无法再工作了。 之后我自己拆开机器人试图理解故障的原因， 完全没有头绪。 后来我有找到了一个更有经验的朋友一起拆开查看，对各个传感器查看， 故障太诡异了， 有时觉得是轮子速度传感器的问题， 有的时候觉得是楼梯悬空传感器的问题。</p>
<p>这个时候伟大的人物出现了， 我这个朋友的老婆， 先找到了一篇帖子 将了如何解读故障灯。 帖子在<a href="http://www.robotshop.com/forum/showthread.php?2077-Mint-error-codes-list" target="_blank">这里</a> 。 简单说一下，故障之后红色故障灯会闪烁， 闪烁的次数有一定的含义：</p>
<ul>
<li>闪2次：Mint被卡住了， 不能移动。 把Mint搬到新的地方就好了</li>
<li>闪3次：Mint没法回到出发的地方了。 确保Mint电量充足， 北极星（Cube）开着， 放在正确的地方（桌上）， 蓝色的灯指向房屋屋顶，至少有2～3米的空间。</li>
<li>闪4次：北极星（Cube）在Mint工作时被移动了。 要确保Cube保持固定的位置。</li>
<li>闪5次：Mint检测到了楼梯边缘，而且没法脱离。 请把Mint放到新的地方重新开始。 如果这个楼梯边缘总是导致问题， 请把这个地方挡住。 在某些情况下， 是擦地布导致的问题， 所以请检查擦地布是否装好了。</li>
<li>闪6次：Mint有一个轮子悬在楼梯外面了。 请把Mint放到新的地方重新启动。 如果这个楼梯边缘总是导致问题， 请把这个地方挡住。 在某些情况下， 是擦地布导致的问题， 所以请检查擦地布是否装好了。</li>
<li>闪7次：充电错误。 请联系售后吧</li>
<li>闪8次：Mint没法从睡眠模式中唤醒， 或者是没法和北极星（Cube）通讯。 请联系客服吧</li>
<li>闪14次：Mint发现马达太热了。 请关闭Mint让它冷却。 如果故障依旧， 请联系客服。</li>
<li>闪15次：Mint被困在狭小的地方没法出来了。 请把Mint放到新的地方。 如果Mint持续被困在相同的地方， 请你把这个地方挡住，别让Mint进入。</li>
</ul>
<p>接着说我的机器人的问题， 我们反复实验， 发现奇怪了， 她有时闪6次， 有时闪5次， 有时又闪14次。 而且完全就没有楼梯嘛， 我们完全懵了。这时候， 伟大的人物再次出手， 她找到了Mint在中国代购工厂的一个工人的电话。 我打电话过去咨询， 对方在了解情况之后，得出结论是因为电池的问题， 我的Mint已经使用2年， 电池容量已经不行了， 电力的问题导致各种奇怪的传感器故障。</p>
<p>后来， 我从淘宝上买了新的电池， 装上后果然所有问题都消失了， Yeah～～</p>
<p>最后不得不说， Mint在设计各种传感器上非常仔细， 可以判断各种问题， 不过在电池的设计上却留下了破绽。 首先电池选用的是镍氢电池， 而且电池上没有充电保护电路。 镍氢电池有很容易导致容量记忆的问题。 其次， 没有增加电路来检测电力的故障， 反而是其它的各种传感器失灵， 报出奇怪的故障。</p>
<p>希望写了这些文字， 能够对大家有帮助。</p>
<p>最后谢谢我的朋友以及他伟大的老婆：）</p><p>The post <a href="https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/">Mint 擦地机器人复活记</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2014/01/09/mint-%e6%93%a6%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%a4%8d%e6%b4%bb%e8%ae%b0/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">447</post-id>	</item>
		<item>
		<title>Linux命令行捕捉HTTP数据</title>
		<link>https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/</link>
					<comments>https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/#respond</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Fri, 29 Nov 2013 15:56:32 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">http://www.sandcomp.com/blog/?p=437</guid>

					<description><![CDATA[<p>一般提到Linux上抓包， 大多能想到tcpdump或者wireshark， 这 &#8230; <a href="https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/">Linux命令行捕捉HTTP数据</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>一般提到Linux上抓包， 大多能想到tcpdump或者wireshark， 这两个工具功能强大， 几乎所有需求都可以做到。 不过如果就是想把HTTP Header抓下来看看， 这些工具就显得太过复杂了， tcpdump的参数总是记不住， wireshark也不方便在远程的linux主机上运行。</p>
<p>前两天终于发现了简单好用的工具: ngrep . 捕捉HTTP数据用以下命令即可：</p>
<pre><code># 捕捉所有HTTP流量
ngrep -q -d any -W byline port 80

# 捕捉到www.baidu.com的流量
ngrep -q -d any -W byline port 80 and host www.baidu.com
</code></pre><p>The post <a href="https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/">Linux命令行捕捉HTTP数据</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2013/11/29/linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%8d%95%e6%8d%89http%e6%95%b0%e6%8d%ae/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">437</post-id>	</item>
		<item>
		<title>提高SSH建立连接速度</title>
		<link>https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/</link>
					<comments>https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/#respond</comments>
		
		<dc:creator><![CDATA[albert]]></dc:creator>
		<pubDate>Sat, 14 Sep 2013 02:08:49 +0000</pubDate>
				<category><![CDATA[工具]]></category>
		<guid isPermaLink="false">http://www.sandcomp.com/blog/?p=426</guid>

					<description><![CDATA[<p>今天看到一篇文章可以把git更新时间提高5～50倍。链接在这里： Speed U &#8230; <a href="https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/">继续阅读 <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/">提高SSH建立连接速度</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>今天看到一篇文章可以把git更新时间提高5～50倍。链接在这里： <a href="http://interrobeng.com/2013/08/25/speed-up-git-5x-to-50x/">Speed Up Git (5x to 50x)</a></p>
<p>看了之后，发现其中第一个办法不仅可以提高git还可以提高所有ssh的建立连接速度。<br />
你可以在 <code>~/.ssh/config</code> 中增加以下内容：</p>
<pre><code>ControlMaster auto
ControlPath /tmp/%u-%r@%h:%p
ControlPersist yes
</code></pre>
<p>设置这个配置之后， ssh就会把多个ssh session共享一个tcp连接， 而且当你退出ssh之后， 这个连接依然会保持， 下次再连接的时候就直接可以用了。<br />
配置ControlPath是为每个用户+每个服务器设置一个唯一的socket文件， 我修改了原文中的值， 增加了%u，这样在共享的服务器上使用也就没有问题了。</p><p>The post <a href="https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/">提高SSH建立连接速度</a> first appeared on <a href="https://www.sandcomp.com/blog">沙计算</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.sandcomp.com/blog/2013/09/14/%e6%8f%90%e9%ab%98ssh%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5%e9%80%9f%e5%ba%a6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">426</post-id>	</item>
	</channel>
</rss>
