上传文件至 /

This commit is contained in:
2025-04-15 05:58:55 +00:00
commit 5c75fc07d0
4 changed files with 346 additions and 0 deletions

19
start_service.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# start_service.sh - 启动服务脚本
# 颜色定义
GREEN='\033[0;32m'
NC='\033[0m' # 恢复默认颜色
# 切换到工作目录
cd /www/wwwroot/api2.nosqli.com
# 如果venv存在则激活
if [ -d "venv" ]; then
source venv/bin/activate
fi
# 启动服务
php think CursorTokenFilter >> runtime/log/service.log 2>&1 &
echo $! > service.pid
echo -e "${GREEN}服务已在后台启动PID: $(cat service.pid)${NC}"