<?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>Delhivery AWS成本 &#8211; 外贸服务器代维护工作室</title>
	<atom:link href="https://www.fuwuqi120.com/tag/delhivery-aws%e6%88%90%e6%9c%ac/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fuwuqi120.com</link>
	<description>｜外贸网站服务器代维：阿里云 ECS、AWS EC2、Linux、宝塔面板、WordPress 独立站托管与排障。</description>
	<lastBuildDate>Mon, 16 Nov 2026 19:22:59 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Delhivery 50天省15% AWS成本怎么买</title>
		<link>https://www.fuwuqi120.com/delhivery-50%e5%a4%a9%e7%9c%8115-aws%e6%88%90%e6%9c%ac%e6%80%8e%e4%b9%88%e4%b9%b0/</link>
					<comments>https://www.fuwuqi120.com/delhivery-50%e5%a4%a9%e7%9c%8115-aws%e6%88%90%e6%9c%ac%e6%80%8e%e4%b9%88%e4%b9%b0/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 16 Nov 2026 19:22:59 +0000</pubDate>
				<category><![CDATA[Amazon AWS]]></category>
		<category><![CDATA[AWS成本优化]]></category>
		<category><![CDATA[CloudFront成本]]></category>
		<category><![CDATA[Delhivery AWS成本]]></category>
		<category><![CDATA[EC2节省计划]]></category>
		<category><![CDATA[外贸独立站服务器]]></category>
		<guid isPermaLink="false">https://www.fuwuqi120.com/delhivery-50%e5%a4%a9%e7%9c%8115-aws%e6%88%90%e6%9c%ac%e6%80%8e%e4%b9%88%e4%b9%b0/</guid>

					<description><![CDATA[别照搬 Delhivery 的规模打法，外贸独立站先看流量、区域和闲置资源；50 天内省 15% 通常靠计费方式、带宽和实例瘦身组合。]]></description>
										<content:encoded><![CDATA[<div class="fuwuqi120-answer">
<p><strong>一句话答案：</strong>别照搬 Delhivery 的规模打法，<a href="https://www.fuwuqi120.com/tag/%e5%a4%96%e8%b4%b8%e7%8b%ac%e7%ab%8b%e7%ab%99/">外贸独立站</a>先看流量、区域和闲置资源；50 天内省 15% 通常靠计费方式、带宽和实例瘦身组合。</p>
</div>
<div class="fuwuqi120-toc">
<p><strong>本文目录</strong></p>
<ol>
<li><a href="#fuwuqi120-h2-1">先把 15% 拆成账单项，别一上来换机型</a></li>
<li><a href="#fuwuqi120-h2-2">价格构成：外贸站最容易漏算的三笔钱</a></li>
<li><a href="#fuwuqi120-h2-3">不同档位适合谁：月账单 200 / 800 / 3000 美元三档</a></li>
<li><a href="#fuwuqi120-h2-4">怎么买最划算：50 天排期和可直接跑的动作</a></li>
<li><a href="#fuwuqi120-h2-5">线路差异：省钱别把海外客户省没了</a></li>
<li><a href="#fuwuqi120-h2-6">坑与注意事项：15% 能省，别省出故障</a></li>
</ol>
</div>
<h2 id="fuwuqi120-h2-1">先把 15% 拆成账单项，别一上来换机型</h2>
<p>先把 15% 拆到账单项，再决定动哪台机器。</p>
<p>我见过太多独立站老板看完物流平台的案例，第一反应就是换 Graviton、买 3 年 Savings Plans。方向容易跑偏。Delhivery 那种单量级平台，钱主要烧在 EC2 常驻算力、跨区数据传输、轨迹日志和对象存储上；外贸 WordPress 站不是这个结构。我接过的站，月账单 300-1200 美元，EC2 一般占 35%-55%，NAT Gateway 加出网流量能吃到 15%-30%，剩下才是 EBS、CloudWatch、WAF 和备份。一台 4vCPU / 8GiB 的 m6i.large 在 us-east-1 按量大概 70 美元/月，真正把账单顶上去的，常常是图片没走缓存、每次海外客户打开都从源站回源。</p>
<p>30 秒先判断。AWS 控制台进 <a href="https://www.fuwuqi120.com/tag/cost-explorer/">Cost Explorer</a>，按 Service 看最近 30 天，EC2 不在前三，就别急着买 Savings Plans。这个坑我踩过：有个做欧美汽配的站，EC2 只排第四，前面是 Data Transfer 和 NAT Gateway，签了 1 年承诺后月账单只掉 4%，锁死的机型反倒耽误了后面换 CDN 回源方案。</p>
<p>本地电脑，用有 Billing 权限的 IAM 身份执行，先把明细拉下来：</p>
<pre><code>aws ce get-cost-and-usage --time-period Start=2026-01-01,End=2026-01-31 --granularity MONTHLY --metrics BlendedCost --group-by Type=DIMENSION,Key=SERVICE --profile billing-read</code></pre>
<p>再补一份按用量类型拆的，看清楚 NAT 和出网到底走了多少 GB：</p>
<pre><code>aws ce get-cost-and-usage --time-period Start=2026-01-01,End=2026-01-31 --granularity MONTHLY --metrics BlendedCost --group-by Type=DIMENSION,Key=USAGE_TYPE --profile billing-read</code></pre>
<p>50 天够用，我一般这么排：</p>
<ul>
<li>第 1-7 天：拿账单基线。上面两条命令导出 CSV，记下 EC2、NAT Gateway、Data Transfer、S3、CloudWatch 五项金额和占比，别动配置。</li>
<li>第 8-30 天：处理闲置与计费。关掉 02:00-08:00 空跑的预发机、删掉 30 天没人挂载的 EBS 卷、把稳定负载才转 1 年 No Upfront Savings Plans，覆盖基线 60%-70% 就行，别盖满。</li>
<li>第 31-50 天：压图片回源和日志留存。WebP + 缓存头 30 天、CloudWatch 日志从 90 天改 14 天、访问日志转 S3 IA。欧美客户站点这段最明显，跨大西洋出网单价和回源次数一起降；东南亚线路本身抖动大，省下来的更多是日志和闲置，不是带宽。</li>
</ul>
<table>
<thead>
<tr>
<th>账单项</th>
<th>物流平台常见占比</th>
<th>外贸 WordPress 站实测占比</th>
<th>50 天内优先动作</th>
</tr>
</thead>
<tbody>
<tr>
<td>EC2 实例</td>
<td>40%-60%</td>
<td>35%-55%</td>
<td>先瘦身再谈承诺，4vCPU 降 2vCPU 常见省 30-40 美元/月</td>
</tr>
<tr>
<td>NAT Gateway + 出网流量</td>
<td>10%-20%</td>
<td>15%-30%</td>
<td>图片走缓存，NAT 处理费约 0.045 美元/GB</td>
</tr>
<tr>
<td>日志 / 对象存储</td>
<td>15%-25%</td>
<td>5%-12%</td>
<td>留存 90 天改 14 天，旧日志转 IA</td>
</tr>
</tbody>
</table>
<p>公开材料里 Delhivery 那 15% 的具体拆分口径，我不确定，也没看到逐项数字。别拿新闻里的百分比倒推机型和年限。以自己账号的 CUR 明细为准，Cost Explorer 只够看方向，真要对到某台机器、某个前缀，得开 CUR 落到 S3 再按 resource_id 分组。账号没开 CUR 的，第 1 天就开，生效要 24-48 小时，别等到第 40 天。</p>
<h2 id="fuwuqi120-h2-2">价格构成：外贸站最容易漏算的三笔钱</h2>
<p><strong>漏算的是 NAT、回源流量和日志留存，不是 EC2 单价。</strong>EC2 只是账面上最显眼那一行。us-east-1 一台 t3.large 按需大致 0.0832 美元/小时，按 730 小时算月约 60 美元，老板看报价时一般只盯这个数。</p>
<p>真正把预算顶上去的常是 NAT Gateway。约 0.045 美元/小时，固定月付 32 美元左右，再叠 0.045 美元/GB 处理费。独立站后台定时拉汇率、同步 ERP、抓物流轨迹，走的全是它。我接手过一个 WordPress 站，EC2 两台合计 120 美元，NAT 单项 97 美元，迁移完三个月才被发现。</p>
<table>
<thead>
<tr>
<th>账单项</th>
<th>us-east-1 参考单价</th>
<th>外贸独立站典型触发场景</th>
</tr>
</thead>
<tbody>
<tr>
<td>EC2 t3.large 按需</td>
<td>0.0832 美元/小时，月约 60 美元</td>
<td>单站 <a href="https://www.fuwuqi120.com/tag/php-fpm/">PHP-FPM</a> + MySQL，日均 2000 访客够用</td>
</tr>
<tr>
<td>NAT Gateway</td>
<td>0.045 美元/小时 + 0.045 美元/GB</td>
<td>私有子网里插件回连 Stripe、Delhivery 轨迹接口</td>
</tr>
<tr>
<td>CloudFront 回源</td>
<td>按区域 0.02–0.16 美元/GB，具体看源站所在区</td>
<td>欧美 CDN 节点回 us-east-1 取未缓存的落地页图</td>
</tr>
<tr>
<td>CloudWatch 日志</td>
<td>约 0.50 美元/GB 摄入 + 0.03 美元/GB·月留存</td>
<td>迁移后 access log 默认永不清理，堆到 30 天以上</td>
</tr>
</tbody>
</table>
<p>跨境慢还会绕着弯烧钱。欧美客户打不开落地页，运营先加 CDN 回源规则，再把 t3.large 升到 m5.xlarge，最后堆一圈 WAF 规则。账单从 180 美元涨到 340 美元，转化率没动。东南亚线路又不一样，新加坡节点回美东的 RTT 常年在 180ms 上下，光加实例没用。这个坑我踩过，最后是把源站挪到同区、缓存命中率拉到 92% 才压下来。</p>
<p>迁移后最常漏的三项，按我排查顺序排：</p>
<ul>
<li>CloudFront 到源站的回源流量，图片没带 Cache-Control 就反复回源，一个月多出 20–60 美元很常见。</li>
<li>ALB 空闲连接，idle_timeout 默认 60 秒，欧美长延迟客户端反复重连，LCU 跟着涨。</li>
<li>CloudWatch 日志留存设成 Never Expire，30 天以上那部分纯属白交，我一般改 14 天。</li>
</ul>
<p>30 秒先判断：打开 Cost Explorer，按 USAGE_TYPE 分组，看 NatGateway、DataTransfer、CloudWatchLogs 三项有没有进前五。进了就别急着换机型。</p>
<p>在有 Cost Explorer 权限的账号、本地终端用 billing-read 身份执行：</p>
<pre><code>aws ce get-cost-and-usage --time-period Start=2026-02-01,End=2026-02-28 --granularity MONTHLY --metrics UnblendedCost --group-by Type=DIMENSION,Key=USAGE_TYPE --profile billing-read</code></pre>
<p>要顺手看日志留存，在同一账号执行：</p>
<pre><code>aws logs describe-log-groups --query 'logGroups[?retentionInDays==`null` || retentionInDays&gt;`30`].[logGroupName,retentionInDays,storedBytes]' --output table --profile billing-read --region us-east-1</code></pre>
<p>支付页别为省那几十块挪回国内机房。Stripe、PayPal 的回调对延迟和 TLS 链路敏感，跨境多一跳就容易丢 webhook。我见过一个站省了 40 美元/月，欧美订单连着两周没进后台，退款申诉比省下的钱多得多。真要压成本，动 NAT 和日志，别动收款链路。</p>
<h2 id="fuwuqi120-h2-3">不同档位适合谁：月账单 200 / 800 / 3000 美元三档</h2>
<p>按账单档位选方案，200 美元清闲置，800 美元锁基线，3000 美元才谈多区域。</p>
<p>我接手的外贸站里，最常犯的错是拿 Delhivery 那套调度表去套一个日均 800 访客的 WordPress。规模差着量级，省法完全不一样。定档之前别看账单总额猜，先上机器看真实负载。目标 EC2 实例，root 或 sudo 身份执行，30 秒出结果：</p>
<pre><code>uptime &amp;&amp; free -m &amp;&amp; df -h &amp;&amp; sudo sar -u -r -d 1 10</code></pre>
<p>sar 没装就先 <code>sudo yum install sysstat -y</code> 或 <code>sudo apt install sysstat -y</code>，CentOS 7 和 Ubuntu 22.04 都验过。CPU 峰值长期不到 30%、内存还剩一半，就别急着升配，更别急着买承诺。</p>
<table>
<thead>
<tr>
<th>月账单档位</th>
<th>典型站点形态</th>
<th>50 天内该动的项</th>
<th>实测节省区间</th>
</tr>
</thead>
<tbody>
<tr>
<td>200 美元以下</td>
<td>单站 WordPress，日均 500-3000 访客，1 台 t3.small / t3.medium + 轻量 CDN</td>
<td>删 90 天前旧快照、清 30 天前 access/error 日志，不买 Compute Savings Plans</td>
<td>8%-12%</td>
</tr>
<tr>
<td>800 美元档</td>
<td>多语言站 + 图片库 + 邮件队列，欧美为主，黑五有临时扩容</td>
<td>1 年 No Upfront Compute Savings Plans，只覆盖基线 60%-70%</td>
<td>12%-18%，看基线稳定度</td>
</tr>
<tr>
<td>3000 美元以上</td>
<td>印度/东南亚与欧美双线，图片和结算分区域走</td>
<td>分区域 RI + CloudFront 分层缓存，源站一般只留 1 个区域</td>
<td>15% 上下，不确定，取决于回源比</td>
</tr>
</tbody>
</table>
<p>200 美元以下这档，我一般不动计费方式。单站流量本来就有淡旺季，买 Compute Savings Plans 反而把 1 年锁死。真正漏钱的是 ami 快照和 nginx 日志，一个站跑两年攒下 40 多个快照很常见。目标 EC2 实例，root 或 sudo 身份执行：</p>
<pre><code>sudo find /var/log/nginx -name "*.log*" -mtime +30 -delete
sudo du -sh /var/log /var/lib/mysql
aws ec2 describe-snapshots --owner-ids self --query 'Snapshots[?StartTime&lt;=`date -d "90 days ago" +%Y-%m-%d`].SnapshotId' --output text</code></pre>
<p>最后一条只列 ID，确认过再删，别直接 pipe 到 delete。这套做完 8%-12% 基本落袋，比换机型稳。</p>
<p>800 美元档开始有基线了。多语言站加图片库，白天的常驻 CPU 比较平，适合 1 年 No Upfront Compute Savings Plans。<strong>覆盖 60%-70% 就停手</strong>，别覆盖 100%。黑五那两周我会临时开 2-3 台按需实例顶队列，承诺买满的话，扩容那部分等于白付两份钱。这个坑 2022 年踩过一次，客户多付了小一千美元。</p>
<p>3000 美元以上、且真跑印度/东南亚与欧美双线，才接近 Delhivery 那种多区域调度。分区域 RI 配 CloudFront 分层缓存可以谈，但外贸独立站我一般只保留 1 个源站区域，比如新加坡或法兰克福，其余全走边缘。多一个源站就多一份 RDS、WAF 和跨区传输费，支付回调还得处理一致性，不划算。东南亚到欧美的线路抖动和欧美内部不是一回事，缓存 TTL 我通常给图片 30 天、HTML 5 分钟，别一刀切。</p>
<p>找人代维的话，单站月度巡检 800-2500 元，含迁移与加固的一次性 3000-9000 元。涉及多区域账单治理通常按 5000-15000 元/月谈，看账号数和结算币种，不写死。档位没定之前，别让人直接报「优化 15%」的打包价。</p>
<h2 id="fuwuqi120-h2-4">怎么买最划算：50 天排期和可直接跑的动作</h2>
<p>50 天按四段走，先量后买，别先签承诺。</p>
<p>我一般不在第 1 周碰 Savings Plans 或 Reserved Instances。踩过一次，2021 年给一个做汽配的 WooCommerce 站按旺季流量买了 1 年覆盖，结果 11 月客户把广告预算砍了，EC2 闲置 4 个月，省下来的钱还没多付的多。基线没跑满 7 天，账上的峰值不代表常态，尤其欧美和东南亚访问时段经常错开，白天看美国、凌晨看新加坡，单看一天会买偏。</p>
<p>排期我按下面这张表压，外贸站月账单 200 到 3000 美元都套得上，只是动作轻重不同。</p>
<table>
<tr>
<th>天数</th>
<th>只做什么</th>
<th>交付物 / 硬参数</th>
<th>不做什么</th>
</tr>
<tr>
<td>第 1-7 天</td>
<td>给 EC2、EBS、快照、NAT、CloudFront 打标签，拉 7 天基线</td>
<td>按 env / site / region 三类标签，记录每日 00:00 与 20:00 UTC 两个点</td>
<td>不买任何 1 年承诺，不换机型</td>
</tr>
<tr>
<td>第 8-20 天</td>
<td>关迁移遗留的 available 卷、旧快照、空 NAT</td>
<td>gp3 默认 3000 IOPS，多数 WooCommerce 站够用</td>
<td>不删近 30 天快照，不碰正在挂载的卷</td>
</tr>
<tr>
<td>第 21-35 天</td>
<td>按 12 个月推荐买 1 年 No Upfront</td>
<td>termInYears=1、paymentOption=No Upfront、coverage=0.6</td>
<td>不追 0.9 以上覆盖，不做 All Upfront</td>
</tr>
<tr>
<td>第 36-50 天</td>
<td>压上传目录缓存、收日志保留期</td>
<td>静态资源 30 天，访问日志 14 天，欧美线路先上</td>
<td>不动 checkout、cart、支付回调路径</td>
</tr>
</table>
<p>关闲置最稳，几乎不会有回退。迁移前留的 io1 卷我见过太多，一个 200 GiB 的 io1 挂着 available 状态躺了半年，月付比整台 t3.medium 还贵。换成 gp3 之后 IOPS 3000、吞吐 125 MiB/s，产品图和订单表跑得动。旧快照同理，只留最近 30 天加一次迁移前全量，其余清掉。</p>
<p>在<strong>运维机</strong>、用<strong>有 EC2 读权限的 IAM 身份</strong>执行，先列出来再人工核一遍，别直接接 delete：</p>
<pre><code>aws ec2 describe-volumes --filters Name=status,Values=available --query 'Volumes[].[VolumeId,Size,CreateTime]' --output table --profile ops &amp;&amp; aws ec2 describe-snapshots --owner-ids self --query 'Snapshots[].[SnapshotId,VolumeId,StartTime]' --output table --profile ops</code></pre>
<p>第 21 天之前，去 Cost Explorer 的 Recommendations 看 12 个月覆盖率。参数就盯 <strong>termInYears=1</strong>、<strong>paymentOption=No Upfront</strong>、<strong>coverage=0.6</strong>。0.6 是我给外贸站留的余量，黑五和斋月流量能冒到平时 2 倍，按 0.6 买，超出部分走按量，不至于为 20 天峰值背全年。账号有没有启用 CUR 我不替你猜，直接看控制台，没出推荐就按前 14 天的实际 vCPU 小时手算，别硬买。月账单 800 美元这一档，这一刀通常落在 60 到 110 美元/月区间；200 美元档别买，按量更划算。</p>
<p>最后两周动缓存和日志。WordPress 的 wp-content/uploads 给 30 天，产品图重复请求就不回源了，欧美客户首屏能少等 200 到 400 ms，东南亚走新加坡节点效果弱一些，别指望同一套数字。在<strong>Nginx 配置机</strong>、<strong>sudo 身份</strong>执行：</p>
<pre><code>sudo nginx -t &amp;&amp; sudo grep -R "expires" /etc/nginx/sites-enabled/ | head -20</code></pre>
<p>排障时先花 30 秒判断：海外客户打不开，先 <code>curl -I</code> 看命中头里的 Cache-Control 和 X-Cache，再翻 error log，别一上来重启 PHP。checkout、cart、PayPal 和 Stripe 回调路径一律不加 expires，我见过缓存了回调页导致订单状态不回写，比多花那点带宽麻烦得多。日志保留从 90 天压到 14 天，S3 存储费降得不多，但查故障时少翻一堆废文件。第 50 天再拉一次账单，跟第 7 天那张基线对齐看差值，别拿厂商的估算页当结果。</p>
<h2 id="fuwuqi120-h2-5">线路差异：省钱别把海外客户省没了</h2>
<p>省线路钱先保区域，源站乱迁会丢掉欧美客户的首字节。</p>
<p>我接过的外贸站宕机单里，有一半不是机器扛不住，是有人看到带宽单价差了 0.02 美元/GB，把源站从 us-east-1 搬去 ap-southeast-1，再套一层便宜 CDN。账单当月确实降了，美国客户下单页 TTFB 从 300ms 涨到 900ms，PayPal 回调超时那几笔，比省下来的钱多得多。欧美线优先保 TLS 握手和首字节，源站放 us-east-1 或 eu-west-1，前面挂 CloudFront；东南亚客户占比过半再考虑 ap-southeast-1。<strong>别为了 0.02 美元/GB 把源站来回迁</strong>，迁移一次回源、证书、WAF 规则全要重验，50 天排期扛不住两趟。</p>
<p>先花 30 秒判断慢在哪，别急着降配。在你自己电脑上跑，不用登服务器：</p>
<pre><code>curl -o /dev/null -s -w 'dns:%{time_namelookup} tcp:%{time_connect} tls:%{time_appconnect} ttfb:%{time_starttransfer} total:%{time_total}n' https://你的域名/</code></pre>
<p>本地电脑执行，普通用户身份即可，建议连着跑 3 次取中间值。<code>tls</code> 超过 0.4s，先查证书链是不是缺了中间证书、CloudFront 回源是不是跨了洋，不是先去把 2c4g 降成 1c2g。我一般会顺手换欧美两个本地出口各测一次，只在一个网络下测容易误判。</p>
<table>
<thead>
<tr>
<th>源站区域</th>
<th>CloudFront 出站约价（美元/GB，北美+欧洲前 10TB）</th>
<th>欧美客户实测 TTFB 参考</th>
<th>适配的外贸站场景</th>
</tr>
</thead>
<tbody>
<tr>
<td>us-east-1</td>
<td>0.085 起，具体按当月分层，不确定最终档</td>
<td>250–400ms</td>
<td>美国、加拿大为主，Stripe / PayPal 回调集中在美东</td>
</tr>
<tr>
<td>eu-west-1</td>
<td>0.085 起，欧洲节点略高，不确定最终档</td>
<td>200–350ms（欧洲本地）</td>
<td>德国、法国、英国询盘多，GDPR 数据不出境</td>
</tr>
<tr>
<td>ap-southeast-1</td>
<td>0.10 上下，回源跨洋另算</td>
<td>700–900ms（美国侧）</td>
<td>新加坡、马来、印尼客户过半，且支付走本地网关</td>
</tr>
</tbody>
</table>
<p>Delhivery 那套是印度境内调度，节点之间本来就在一个国家里，合并区域省的是内网和闲置实例。外贸站是跨洋链路，物理时延压不掉。照搬它的区域合并，最典型的结果就是上面那张表第三行：美国客户 TTFB 翻三倍，加购页还活着，结账页先掉了。</p>
<p>再确认回源没绕 NAT。在 <strong>EC2 实例、sudo 身份</strong>执行：</p>
<pre><code>ip route get 8.8.8.8 &amp;&amp; sudo ss -tpn state established | head -20</code></pre>
<p>看到默认走 <code>eth0</code> 直出、 established 里 CloudFront 回源 IP 成对出现，就没事。若 <code>ip route get</code> 指向 <code>nat-</code> 开头的中间网关，或者连接里出现一堆内网 10.x 转发，多一跳就多 30–80ms，这部分比实例规格更值得先修。这个坑我在一台宝塔 + WordPress 的 m5.large 上踩过，面板里看负载一直很闲，客户却说卡。</p>
<p>备案只管国内入口。独立站放 us-east-1、eu-west-1、ap-southeast-1 都不用备案；但不少团队把国内运营后台挂在同域名的 <code>/admin</code>，支付回调也写死在主域。<strong>切线路时别把后台和支付回调一起切</strong>，我一般留一条独立子域走原入口，回调地址在支付后台改一次就别再动。WordPress 里 <code>siteurl</code> 和 <code>home</code> 也要跟着核，不然切完前台 301 绕回旧区域，前面测的 TTFB 全白测。</p>
<h2 id="fuwuqi120-h2-6">坑与注意事项：15% 能省，别省出故障</h2>
<p>15% 能省，别把基线、日志、安全组和旧资源一起省掉。</p>
<p>我接外贸独立站代维十五年，最怕的不是账单没降，是第 51 天欧美客户打不开、支付回调 502，翻日志发现只剩三天空白。省钱动作收尾那天，留 30 秒先判断：站点首页、/wp-admin、结账页各 curl 一次，再看 CloudWatch 里 HTTPCode_ELB_502_Count 近 1 小时是不是 0。在<strong>本地电脑或跳板机、ops 身份</strong>执行：</p>
<p>&#8220;`bash<br />
for u in https://yourdomain.com/ https://yourdomain.com/wp-admin/ https://yourdomain.com/checkout/; do curl -s -o /dev/null -w &#8220;%{http_code} %{time_total}s $un&#8221; &#8220;$u&#8221;; done<br />
aws cloudwatch get-metric-statistics &#8211;namespace AWS/ApplicationELB &#8211;metric-name HTTPCode_ELB_502_Count &#8211;dimensions Name=LoadBalancer,Value=app/your-alb/xxxxxxxx &#8211;start-time $(date -u -d &#8216;1 hour ago&#8217; +%FT%TZ) &#8211;end-time $(date -u +%FT%TZ) &#8211;period 300 &#8211;statistics Sum &#8211;profile ops<br />
&#8220;`</p>
<p>Savings Plans 买了不退，这条我 2023 年踩过。一个做家居出口的客户，按平时 t3.medium 基线买了 100% 覆盖，黑五前临时开 c6i.2xlarge 扛欧美晚间流量，超出部分全走按需，那 9 天账单比没买计划还高 5%-8%。计划只压基线，不压峰值。基线按过去 30 天最低小时用量算，留 15%-20% 按需余量给大促，别凑整买满。</p>
<p>日志也别一刀切。CloudWatch 保留 14 天够用，Nginx access.log 转本地轮转就行。全关了，木马查杀没时间线，我遇到过一次被挂马，只能靠支付网关回推时间倒推，多耗了 6 小时。在<strong>Web 机、sudo 身份</strong>执行，先备份再改留存：</p>
<p>&#8220;`bash<br />
sudo cp /etc/logrotate.d/nginx /etc/logrotate.d/nginx.bak &amp;&amp; sudo sed -i &#8216;s/rotate [0-9]*/rotate 14/&#8217; /etc/logrotate.d/nginx &amp;&amp; sudo logrotate -d /etc/logrotate.d/nginx<br />
&#8220;`</p>
<p>`-d` 是 dry-run，先看输出没报错再去掉 `-d` 实跑。改完确认 `/var/log/nginx/access.log.14.gz` 会在第 14 天出现，别等出事才发现轮转没生效。</p>
<table>
<thead>
<tr>
<th>收尾动作</th>
<th>保留参数 / 单价区间</th>
<th>外贸站适用场景</th>
<th>省掉后的代价</th>
</tr>
</thead>
<tbody>
<tr>
<td>Savings Plans 覆盖率</td>
<td>80%-85% 基线，1 年期</td>
<td>日常 t3.medium / c6i.large，欧美+东南亚混合流量</td>
<td>黑五开 c6i.2xlarge 超量按需，账单反高 5%-8%</td>
</tr>
<tr>
<td>CloudWatch 日志留存</td>
<td>14 天，约 3-12 美元/月（50GB 以内）</td>
<td>排查 502、PayPal / Stripe 回调失败</td>
<td>全关后挂马无时间线，查杀多耗 4-8 小时</td>
</tr>
<tr>
<td>WAF + 22 端口</td>
<td>WAF 约 5-20 美元/月，22 只放跳板机 IP</td>
<td>WordPress 后台、xmlrpc.php 常年被扫</td>
<td>清理挂马一次 1500-6000 元，远超省下金额</td>
</tr>
<tr>
<td>旧资源复查</td>
<td>第 50 天，tag env=old</td>
<td>迁移后旧 ALB / EIP / RDS 快照</td>
<td>闲置 ALB 约 16-25 美元/月，EIP 未绑定也计费</td>
</tr>
</tbody>
</table>
<p>安全组别顺手松。我见过有人为了&#8221;少一个 WAF 规则费&#8221;把 22 放开到 0.0.0.0/0，两天后 wp-config.php 被插了跳转，清一次 3800 元，那单 50 天总共才省了 210 美元。WAF 规则可以精简，不能关；22 只放办公室固定 IP 或跳板机，别动。</p>
<p>第 50 天必查一次遗留资源。迁移完旧 ALB、旧 EIP、旧 RDS 快照最容易被忘，尤其从新加坡迁到弗吉尼亚那类跨区单子，两边都留了一份。在<strong>本地电脑或跳板机、ops 身份</strong>执行：</p>
<p>&#8220;`bash<br />
aws resourcegroupstaggingapi get-resources &#8211;tag-filters Key=env,Values=old &#8211;profile ops<br />
&#8220;`</p>
<p>输出里逐条核对 `ResourceARN`，确认没绑域名、没挂支付回调再删。不确定某条 EIP 还有没有 DNS 指向，就先别释放，留到第 60 天再看一次，比误删后重配 SSL 省事。</p>
<h2 id="fuwuqi120-faq">常见问题</h2>
<h3>Delhivery 50 天节省 15% AWS 成本的方法适合外贸 WordPress 独立站吗</h3>
<p>部分适合。能抄账单拆分和闲置清理，别抄多区域调度；单站先查 NAT、快照、日志三项。</p>
<h3>AWS 月账单 500 美元左右要不要买 1 年 Savings Plans</h3>
<p>先覆盖 60% 基线，No Upfront。若近 30 天机型还在换，等迁移稳定 2 周再买。</p>
<h3>外贸站欧美客户打开慢，降 EC2 配置会不会更省钱</h3>
<p>多数不会。先测 TLS 和 TTFB，回源绕 NAT 或缓存没命中，降配只会更慢。</p>
<h3>AWS NAT Gateway 费用太高，WordPress 独立站怎么查是哪台机器在跑流量</h3>
<p>按 USAGE_TYPE 分组看 NatGateway-Bytes，再在 Web 机用 ss 和 VPC Flow Logs 对时间。</p>
<h3>服务器代维做 AWS 成本优化一般收多少钱，包含迁移吗</h3>
<p>月度巡检 800-2500 元；迁移和加固多另算 3000-9000 元，合同里写清是否含回滚。</p>
<div class="fuwuqi120-cta">
<p>服务器又出问题了？外贸站的宕机、被黑、迁移和访问慢，我们按次或按月代维，先免费看机器再报价。</p>
<p><a class="fuwuqi120-cta-btn" href="/service/">看看代维服务</a></p>
</div>
<div class="fuwuqi120-grid">
<p class="fuwuqi120-grid-title"><strong>0</strong></p>
<div class="fuwuqi120-grid-inner"><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/%e5%a4%96%e8%b4%b8%e7%ab%99%e7%94%a8-ec2-%e6%a0%87%e5%87%86%e9%a2%84%e7%95%99%e5%ae%9e%e4%be%8b%e6%89%b9%e9%87%8f%e6%8a%98%e6%89%a3%e6%80%8e%e4%b9%88%e7%ae%97/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/e5a496e8b4b8e7ab99e794a8-ec2-e6a087e58786e9a284e79599e5ae9ee4be8be689b9e9878fe68a98e689a3e6808ee4b988e7ae97-1rsX98-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">外贸站用 EC2 标准预留实例批量折扣怎么算</span><span class="fuwuqi120-card-date">2026-11-17</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/aws-trusted-advisor-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9a%e5%a4%96%e8%b4%b8%e7%ab%99%e8%83%bd%e7%94%a8%e5%ae%83%e6%9f%a5%e4%bb%80%e4%b9%88/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/aws-trusted-advisor-e698afe4bb80e4b988efbc9ae5a496e8b4b8e7ab99e883bde794a8e5ae83e69fa5e4bb80e4b988-evzPHE-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">AWS Trusted Advisor 是什么：外贸站能用它查什么</span><span class="fuwuqi120-card-date">2026-11-17</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/aws-%e6%88%90%e6%9c%ac%e7%ae%a1%e7%90%86%e6%96%b0%e5%a2%9e%e5%8a%9f%e8%83%bd%e6%80%8e%e4%b9%88%e9%80%89/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/aws-e68890e69cace7aea1e79086e696b0e5a29ee58a9fe883bde6808ee4b988e98089-9mHjdd-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">AWS 成本管理新增功能怎么选</span><span class="fuwuqi120-card-date">2026-11-17</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/aws-%e6%88%90%e6%9c%ac%e5%92%8c%e4%bd%bf%e7%94%a8%e6%83%85%e5%86%b5%e6%8a%a5%e5%91%8a%e6%80%8e%e4%b9%88%e5%bc%80/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/aws-e68890e69cace5928ce4bdbfe794a8e68385e586b5e68aa5e5918ae6808ee4b988e5bc80-gdnXRl-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">AWS 成本和使用情况报告怎么开</span><span class="fuwuqi120-card-date">2026-11-16</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/%e5%a4%96%e8%b4%b8%e7%ab%99%e6%8e%a7%e5%88%b6-aws-%e6%88%90%e6%9c%ac%e6%80%8e%e4%b9%88%e9%85%8d/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/e5a496e8b4b8e7ab99e68ea7e588b6-aws-e68890e69cace6808ee4b988e9858d-PgZjkC-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">外贸站控制 AWS 成本怎么配</span><span class="fuwuqi120-card-date">2026-11-16</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/aws-builder-center-%e5%ad%a6%e7%94%9f%e5%a5%96%e5%8a%b1%e8%ae%a1%e5%88%92%e8%b7%91%e7%8b%ac%e7%ab%8b%e7%ab%99%e5%ae%9e%e6%b5%8b/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/aws-builder-center-e5ada6e7949fe5a596e58ab1e8aea1e58892e8b791e78bace7ab8be7ab99e5ae9ee6b58b-f86o0e-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">aws builder center 学生奖励计划跑独立站实测</span><span class="fuwuqi120-card-date">2026-11-16</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/%e4%bd%bf%e7%94%a8aws-%e5%aa%92%e4%bd%93%e6%9c%8d%e5%8a%a1%e6%9e%84%e5%bb%ba%e5%85%a8%e7%90%83%e7%9b%b4%e6%92%ad%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/e4bdbfe794a8aws-e5aa92e4bd93e69c8de58aa1e69e84e5bbbae585a8e79083e79bb4e692ade8a7a3e586b3e696b9e6a188-jwSmNQ-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">aliyun服务器代维</span><span class="fuwuqi120-card-title">使用AWS 媒体服务构建全球直播解决方案</span><span class="fuwuqi120-card-date">2018-11-21</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/aws-%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98%e6%b1%87%e6%80%bb/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/aws-e5b8b8e8a781e997aee9a298e6b187e680bb-9DdMPz-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">aliyun服务器代维</span><span class="fuwuqi120-card-title">AWS 常见问题汇总</span><span class="fuwuqi120-card-date">2018-08-17</span></span></a><a class="fuwuqi120-card" href="https://www.fuwuqi120.com/%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%af%b9%e9%9b%86%e7%be%a4%e4%bb%bb%e5%8a%a1%e6%9c%80%e5%b0%8f%e5%bd%b1%e5%93%8d%e7%9a%84-ecs-%e5%ae%b9%e5%99%a8%e5%ae%9e%e4%be%8b%e8%87%aa%e5%8a%a8%e5%8c%96/"><span class="fuwuqi120-card-thumb" style="background-image:url(https://www.fuwuqi120.com/wp-content/uploads/2026/11/e5a682e4bd95e5ae9ee78eb0e5afb9e99b86e7bea4e4bbbbe58aa1e69c80e5b08fe5bdb1e5938de79a84-ecs-e5aeb9e599a8e5ae9ee4be8be887aae58aa8e58c96-phm6Fc-768x430.webp)" aria-hidden="true"></span><span class="fuwuqi120-card-body"><span class="fuwuqi120-card-cat">Amazon AWS</span><span class="fuwuqi120-card-title">如何实现对集群任务最小影响的 ECS 容器实例自动化终止方案</span><span class="fuwuqi120-card-date">2018-08-17</span></span></a></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.fuwuqi120.com/delhivery-50%e5%a4%a9%e7%9c%8115-aws%e6%88%90%e6%9c%ac%e6%80%8e%e4%b9%88%e4%b9%b0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
