Files
xyzw_web_helper/MD说明文件夹/快速部署指南.txt
2025-10-17 20:56:50 +08:00

95 lines
3.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

================================================
XYZW Token Manager - 快速部署指南
================================================
📌 部署到 winnas.whtnas.top:25432
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 快速开始(三步完成部署)
第一步:配置防火墙
-------------------
双击运行setup-firewall.bat
会自动请求管理员权限并添加防火墙规则允许端口25432的访问。
第二步:启动服务
-------------------
方式1双击运行 start.bat然后选择 [2] 部署模式
方式2直接双击运行 start-deploy.bat
第三步:验证访问
-------------------
本地访问http://localhost:25432
域名访问http://winnas.whtnas.top:25432
需要先配置DNS的IPv6 AAAA记录
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 详细配置说明
1. DNS配置必须
- 类型AAAA记录
- 主机winnas
- 值你的IPv6地址
- 验证nslookup -type=AAAA winnas.whtnas.top
2. 防火墙配置(必须)
- 运行setup-firewall.bat
- 或手动添加允许TCP端口25432入站
3. 启动服务
- 部署模式start-deploy.bat (端口25432)
- 本地模式start-local.bat (端口3001)
- 交互模式start.bat (选择启动模式)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 常用命令
查看端口占用:
netstat -ano | findstr 25432
查看防火墙规则:
powershell "Get-NetFirewallRule -DisplayName '*XYZW*'"
测试访问:
curl http://localhost:25432
curl http://winnas.whtnas.top:25432
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 配置说明
✓ IPv4监听本地3001端口仅供参考实际使用25432
✓ IPv6支持公网访问域名解析到IPv6地址
✓ 端口25432部署/ 3001本地开发
✓ 域名winnas.whtnas.top已在白名单中
✓ 监听0.0.0.0所有网络接口支持IPv4和IPv6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
❓ 常见问题
Q: 无法通过域名访问?
A: 1. 检查DNS是否配置IPv6 AAAA记录
2. 检查防火墙规则是否生效
3. 确认服务正常运行
Q: 端口被占用?
A: netstat -ano | findstr 25432
找到进程ID后taskkill /F /PID [进程ID]
Q: 防火墙配置失败?
A: 右键setup-firewall.bat选择"以管理员身份运行"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 更多信息请查看:部署说明.md
================================================