Compare commits
2 Commits
c57e9a163d
...
5f2d71da89
| Author | SHA1 | Date |
|---|---|---|
|
|
5f2d71da89 | 1 month ago |
|
|
5cb9f5edcc | 1 month ago |
2 changed files with 40 additions and 8 deletions
@ -0,0 +1,17 @@ |
|||
#!/bin/bash |
|||
|
|||
# 激活conda环境 |
|||
source /root/miniconda3/etc/profile.d/conda.sh # 或者指定你的conda路径 |
|||
conda activate vfa |
|||
|
|||
# 进入工作目录 |
|||
cd ./ |
|||
|
|||
# 查看端口8088的进程,并杀掉它 |
|||
pid=$(lsof -t -i:9099) |
|||
if [ -n "$pid" ]; then |
|||
kill -9 $pid |
|||
fi |
|||
|
|||
# 启动程序,并使其在后台运行 |
|||
nohup python3 app.py --env=prod > /dev/null 2>&1 & |
|||
Loading…
Reference in new issue