Files
change_hair_3090/stop_all_services.sh
colomi 42622e8e1e 完善部署脚本兼容性并生成详细部署手册
- setup.sh: 自动检测 CONDA_BASE(conda info --base),移除 set -e 改为
  错误收集,新增第8步验证 kohya 训练环境(测试 torch/accelerate 加载)
- start_all_services.sh: 自动检测 CONDA_BASE,新增端口冲突检测和
  WebUI 就绪等待(最多60秒轮询)
- stop_all_services.sh: 新增停止脚本,按端口停止三个服务
- py310.yml: 移除硬编码 prefix 路径,避免跨机器部署问题
- DEPLOY.md: 详细部署操作手册,覆盖从 clone 到验证三大功能的全流程
- 已验证: kohya.tar.gz 解压→conda-unpack→PYTHONPATH 加载全部通过
2026-07-11 19:11:36 +08:00

20 lines
502 B
Bash
Executable File
Raw Permalink 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.
#!/bin/bash
echo "=== 停止换发型服务 ==="
# 按端口停止服务
for port_info in "8801:hair_service_sd" "57860:webui" "32678:photo_service"; do
port="${port_info%%:*}"
name="${port_info##*:}"
if lsof -i :$port >/dev/null 2>&1; then
pid=$(lsof -t -i :$port)
kill $pid 2>/dev/null
echo " ✓ 已停止 $name (端口 $port, PID $pid)"
else
echo " $name 未在运行 (端口 $port)"
fi
done
echo ""
echo "=== 所有服务已停止 ==="