orztv commited on
Commit
861c8db
·
1 Parent(s): bb216f7
Files changed (2) hide show
  1. .gitignore +0 -1
  2. run.sh +0 -30
.gitignore CHANGED
@@ -23,7 +23,6 @@ ksa.log
23
 
24
  # 特定文件
25
  ksa_x64
26
- run.sh
27
 
28
  # IDE
29
  .idea/
 
23
 
24
  # 特定文件
25
  ksa_x64
 
26
 
27
  # IDE
28
  .idea/
run.sh CHANGED
@@ -40,40 +40,10 @@ wait_for_service() {
40
  exit 1
41
  }
42
 
43
-
44
-
45
- # 检查服务状态
46
- check_services() {
47
- echo "检查服务状态..."
48
-
49
- # 检查 Redis
50
- echo "Redis 状态:"
51
- redis-cli info | grep 'used_memory\|connected_clients\|total_connections_received'
52
-
53
- # 检查 Qdrant
54
- echo "Qdrant 状态:"
55
- if curl -s http://localhost:6333/metrics >/dev/null; then
56
- echo "Qdrant 运行正常"
57
- curl -s http://localhost:6333/metrics
58
-
59
- # 显示集合信息
60
- echo "Qdrant 集合列表:"
61
- curl -s http://localhost:6333/collections
62
- else
63
- echo "Qdrant 服务异常"
64
- tail -n 10 /home/pn/.n8n/qdrant/qdrant.log
65
- fi
66
- }
67
-
68
  # 主流程
69
  main() {
70
  current_time=$(date +"%Y-%m-%d %H:%M:%S")
71
  echo "Starting services at $current_time"
72
- # 启动服务
73
- wait_for_service "PostgreSQL" "${DB_POSTGRESDB_HOST}" "${DB_POSTGRESDB_PORT}"
74
- echo ""
75
- check_services
76
-
77
  echo "Starting deepseek-free-api... "
78
  exec node /home/pn/deepseek-free-api/dist/index.js
79
  }
 
40
  exit 1
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  # 主流程
44
  main() {
45
  current_time=$(date +"%Y-%m-%d %H:%M:%S")
46
  echo "Starting services at $current_time"
 
 
 
 
 
47
  echo "Starting deepseek-free-api... "
48
  exec node /home/pn/deepseek-free-api/dist/index.js
49
  }