Shadowsocks deploymentShadowsocks 自建
How to Deploy a Shadowsocks Server on a VPS怎么在 VPS 上部署 Shadowsocks 服务端
Shadowsocks is the lightest self-hosting path for many people, but it still means maintaining a server. If that sounds like unpaid admin work, open a Just My Socks plan first and use this article only as a comparison.Shadowsocks 是很多人自建时最轻的路线,但它仍然需要维护服务器。如果你不想做这些运维活,先打开 Just My Socks 套餐入口,把本文当作对照即可。
Updated 2026-07-07. Includes a primary recommendation, an alternative and the next setup step.更新于 2026-07-07。包含主推荐、备选方案和下一步配置方法。
Practical recommendation实际建议
Deploy Shadowsocks if you want to understand the server and can maintain firewall, ports and updates. If you only need a working node tonight, inspect JMS first and come back to self-hosting later.如果你想理解服务端并愿意维护防火墙、端口和更新,可以自建 Shadowsocks;如果今晚只是想先用起来,先看 JMS,再回头研究自建。
Where I would start先从哪个入口看
Compare managed plans only if maintenance time matters more than full control.如果维护时间比完全控制更重要,再比较托管套餐。
| Your situation你的情况 | Try first先看 | Why为什么 | Open入口 |
|---|---|---|---|
| 不想维护 VPS不想维护 VPS | LA 500 | Use as the managed shortcut if you do not want to maintain a Shadowsocks server yourself.如果不想自己维护 Shadowsocks 服务端,用它作为省事入口。 | |
| 中国方向优先中国方向优先 | HK CMI+NTT 500 | Worth checking if your use case is more China-route sensitive than US-service oriented.如果你的场景更看重中国方向路由,而不是美国服务,值得优先对比。 | |
| 亚洲对照亚洲对照 | Tokyo 100 | A small Asia comparison entry when Japan paths or nearby latency matter.当日本路径或亚洲邻近延迟更重要时,作为小流量对照入口。 |
This copies the coupon first, then opens checkout.点击后先复制优惠码,再打开结账页。
Step 1: prepare the VPS, not just the installer第一步:先准备 VPS,而不是急着跑脚本
Before installing anything, decide the VPS location, create a non-root login, update the system and record which port you plan to expose. Do not open a wide port range just because a random guide did it.安装前先确定 VPS 地区,创建非 root 登录,更新系统,并记录准备开放哪个端口。不要因为某个教程这么写,就放开一大片端口。
Pick one maintained Shadowsocks implementation and one client that supports the same settings. Mixing old server builds with new clients is a common source of wasted time.选择一个仍在维护的 Shadowsocks 服务端实现,再配一个支持相同参数的客户端。旧服务端加新客户端,经常会浪费很多排查时间。
Step 2: keep the service boring第二步:服务配置越朴素越好
Keep the server configuration small: listen address, port, password or key, encryption method supported by both ends and service user. Save the final client profile somewhere private.服务端配置保持简单:监听地址、端口、密码或密钥、两端都支持的加密方式和运行用户。最终客户端配置要保存在私密位置。
Use the system service manager so the process starts after reboot. Then allow only the chosen port in the firewall and test from a different network.用系统服务管理器托管进程,确保重启后自动启动。然后只在防火墙放行选定端口,并从另一个网络测试连接。
Step 3: test one layer at a time第三步:一层一层测试
When it fails, split the problem: server process, firewall, VPS provider, client profile and local network. Changing all settings at once makes the failure harder to read.出问题时分开排查:服务进程、防火墙、VPS 商家限制、客户端配置、本地网络。不要一次改一堆参数,否则很难知道问题在哪。
If this work is already more than you wanted, use the Just My Socks button on this page. It copies the coupon first and opens checkout.如果这些已经超过你想投入的时间,直接点本文的 Just My Socks 入口;按钮会先复制优惠码,再打开结账页。
Before replacing server maintenance with a subscription, use the JMS vs VPS decision guide.准备从服务器维护转向订阅前,先看JMS 与 VPS 决策指南。
Direct plan entries可直接查看的入口
LA 500
Use as the managed shortcut if you do not want to maintain a Shadowsocks server yourself.如果不想自己维护 Shadowsocks 服务端,用它作为省事入口。
HK CMI+NTT 500
Worth checking if your use case is more China-route sensitive than US-service oriented.如果你的场景更看重中国方向路由,而不是美国服务,值得优先对比。
Tokyo 100
A small Asia comparison entry when Japan paths or nearby latency matter.当日本路径或亚洲邻近延迟更重要时,作为小流量对照入口。
Just My Socks promo codeJust My Socks 优惠码
Enter this code in the coupon field to apply the recurring discount to eligible plans.在优惠码输入框使用这个码,为适用套餐应用循环优惠。
FAQ常见问题
Is Shadowsocks still a reasonable first setup?Shadowsocks 还适合作为第一套自建方案吗?
For new self-hosting, Shadowsocks is the simpler choice compared with multi-transport stacks. Keep it minimal and avoid random one-click scripts.新手自建时,Shadowsocks 通常比多传输栈更容易开始。建议保持配置简单,不要随便复制来路不明的一键脚本。
What do I need before installing?安装前需要准备什么?
A basic setup needs a VPS, SSH access, a maintained server implementation, one open port, a strong password or key and a client that supports the same method.基础搭建需要 VPS、SSH 权限、仍在维护的服务端实现、一个开放端口、强密码或密钥,以及支持同一配置的客户端。
Should I copy an old install script?可以直接复制旧的一键脚本吗?
No. Pick a maintained implementation and read its release notes. Old abandoned guides can leave you with weak defaults or broken client support.选择仍在维护的实现并阅读发布说明;旧教程常见弱默认值和客户端兼容问题。
What if the client cannot connect?客户端连不上怎么办?
Start by checking whether the service is running, the firewall allows the port, the VPS provider did not block it and the client profile exactly matches the server.先检查服务是否运行、防火墙是否放行端口、VPS 商家是否限制端口,以及客户端配置是否和服务端完全一致。
When is JMS easier than Shadowsocks self-hosting?什么时候 JMS 比自建 Shadowsocks 省事?
Use Just My Socks to avoid server upkeep: choose a region, apply and import the subscription into your client.目标是减少服务器维护就选择 Just My Socks:选地区、填写优惠码并导入订阅。
Is there anything I should avoid?有什么需要避免的吗?
Use the service only where lawful and follow the rules of your network, provider and local jurisdiction.请只在合法场景使用,并遵守所在网络、服务商和当地规则。
Recommended next step下一步建议
Complete your order完成购买
Open the recommended plan, paste the coupon, choose the billing cycle and continue to payment.打开推荐套餐、粘贴优惠码、选择账期,然后继续付款。