<?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[PM2 显示 online，但外面访问一直 502]]></title><description><![CDATA[<p dir="auto">服务 PM2 是 online，端口本机 curl 也通，但外面访问 502。这个一般看哪？</p>
]]></description><link>https://localaihub.com/topic/220/pm2-显示-online-但外面访问一直-502</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 17:50:52 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/220.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 May 2026 10:52:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sun, 17 May 2026 04:56:00 GMT]]></title><description><![CDATA[<p dir="auto">这个可以结案。建议把端口写进 compose/env，不要散在多个地方。</p>
]]></description><link>https://localaihub.com/post/2506</link><guid isPermaLink="true">https://localaihub.com/post/2506</guid><dc:creator><![CDATA[小吴]]></dc:creator><pubDate>Sun, 17 May 2026 04:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sun, 17 May 2026 01:49:00 GMT]]></title><description><![CDATA[<p dir="auto">经典。online 不等于你连的是它。</p>
]]></description><link>https://localaihub.com/post/2505</link><guid isPermaLink="true">https://localaihub.com/post/2505</guid><dc:creator><![CDATA[半截薯条]]></dc:creator><pubDate>Sun, 17 May 2026 01:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sun, 17 May 2026 00:56:00 GMT]]></title><description><![CDATA[<p dir="auto">找到了，Nginx 配的是 8848，容器映射实际是 8849。PM2 没问题。</p>
]]></description><link>https://localaihub.com/post/2504</link><guid isPermaLink="true">https://localaihub.com/post/2504</guid><dc:creator><![CDATA[好困但在看日志]]></dc:creator><pubDate>Sun, 17 May 2026 00:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 23:51:00 GMT]]></title><description><![CDATA[<p dir="auto">贴日志前记得打码 cookie、token、内网 IP 如果敏感。</p>
]]></description><link>https://localaihub.com/post/2503</link><guid isPermaLink="true">https://localaihub.com/post/2503</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Sat, 16 May 2026 23:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 23:19:00 GMT]]></title><description><![CDATA[<p dir="auto">大。502 更像上游连不上或返回异常，504 更像超时。但实际还要看 error.log。</p>
]]></description><link>https://localaihub.com/post/2502</link><guid isPermaLink="true">https://localaihub.com/post/2502</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Sat, 16 May 2026 23:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 22:42:00 GMT]]></title><description><![CDATA[<p dir="auto">502 和 504 区别大吗？</p>
]]></description><link>https://localaihub.com/post/2501</link><guid isPermaLink="true">https://localaihub.com/post/2501</guid><dc:creator><![CDATA[普通网友A]]></dc:creator><pubDate>Sat, 16 May 2026 22:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 20:24:00 GMT]]></title><description><![CDATA[<p dir="auto">那先复现真实链路：curl -H 'Host: 域名' <a href="http://127.0.0.1" rel="nofollow ugc">http://127.0.0.1</a>:端口，再从 Nginx 机器 curl 上游。</p>
]]></description><link>https://localaihub.com/post/2500</link><guid isPermaLink="true">https://localaihub.com/post/2500</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Sat, 16 May 2026 20:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 19:54:00 GMT]]></title><description><![CDATA[<p dir="auto">我刚才只 curl 127.0.0.1:端口，没有带 Host。</p>
]]></description><link>https://localaihub.com/post/2499</link><guid isPermaLink="true">https://localaihub.com/post/2499</guid><dc:creator><![CDATA[好困但在看日志]]></dc:creator><pubDate>Sat, 16 May 2026 19:54:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 17:16:00 GMT]]></title><description><![CDATA[<p dir="auto">curl 要带 Host 测。很多服务按域名路由，不带 Host 和真实访问不一样。</p>
]]></description><link>https://localaihub.com/post/2498</link><guid isPermaLink="true">https://localaihub.com/post/2498</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Sat, 16 May 2026 17:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 14:39:00 GMT]]></title><description><![CDATA[<p dir="auto">如果本机 curl 通，外面 502，多半是反代链路。也看防火墙和 FRP。</p>
]]></description><link>https://localaihub.com/post/2497</link><guid isPermaLink="true">https://localaihub.com/post/2497</guid><dc:creator><![CDATA[小吴]]></dc:creator><pubDate>Sat, 16 May 2026 14:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但外面访问一直 502 on Sat, 16 May 2026 11:41:00 GMT]]></title><description><![CDATA[<p dir="auto">先看 Nginx 到上游的 upstream 配置，Host、端口、协议。PM2 online 只能说明进程还在。</p>
]]></description><link>https://localaihub.com/post/2496</link><guid isPermaLink="true">https://localaihub.com/post/2496</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Sat, 16 May 2026 11:41:00 GMT</pubDate></item></channel></rss>