Commit ce4a0f69 by 柴鹏飞

增加接口启动脚本

parent 2b5c5943
...@@ -24,7 +24,9 @@ python bin/update.py -t make_embedding ...@@ -24,7 +24,9 @@ python bin/update.py -t make_embedding
### 启动接口服务 ### 启动接口服务
```bash ```bash
sh bin/start.sh # 一定要在 `bin` 目录中执行
cd bin
sh start.sh
``` ```
......
#!/bin/bash
set -u
set -x
for port in `echo '6001,6002' | tr ',' ' '`
do
echo $port
nohup python ../src/service/service.py --port=$port > ../log/console_service_$port.log 2>&1 &
echo $! >> .start_service.pid
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment