18 lines
454 B
Bash
Executable File
18 lines
454 B
Bash
Executable File
#!/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 目录下的日志文件" |