初始化短视频平台项目 v1.0.0

This commit is contained in:
2026-07-08 00:39:39 +08:00
commit d95b08eb8c
13 changed files with 3127 additions and 0 deletions

26
stop.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# 短视频平台停止脚本
cd "$(dirname "$0")"
# 查找并停止进程
PID=$(lsof -t -i:16035 2>/dev/null)
if [ -z "$PID" ]; then
echo "服务未运行"
exit 0
fi
echo "正在停止服务 (PID: $PID)..."
kill $PID
# 等待进程结束
sleep 2
# 再次检查
if lsof -i:16035 > /dev/null 2>&1; then
echo "强制停止..."
kill -9 $PID
fi
echo "✓ 服务已停止"