QAUP_Management/tools/start_mock_services.sh
2025-10-16 16:06:05 +08:00

18 lines
454 B
Bash
Executable File
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.

#!/bin/bash
# 项目路径
TOOLS_DIR="."
# 后台启动三个mock脚本
cd $TOOLS_DIR
# 启动机场mock服务
nohup python3 mock_airport.py > logs/airport.log 2>&1 &
# 启动红绿灯mock服务作为TCP服务器
nohup python3 mock_traffic_light.py > logs/traffic.log 2>&1 &
# 启动无人车mock服务
nohup python3 mock_unmanned_vehicle.py > logs/traffic.log 2>&1 &
echo "三个mock服务已启动请检查 logs 目录下的日志文件"