Skip to content

Commit

Permalink
Merge pull request #1680 from V-know/patch-1
Browse files Browse the repository at this point in the history
Doc: 优化【服务器部署】
  • Loading branch information
zhayujie committed Jan 26, 2024
2 parents 8045019 + b67d446 commit d0fd784
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ python3 app.py # windows环境下该命令通
使用nohup命令在后台运行程序:

```bash
touch nohup.out # 首次运行需要新建日志文件
nohup python3 app.py & tail -f nohup.out # 在后台运行程序并通过日志输出二维码
```
扫码登录后程序即可运行于服务器后台,此时可通过 `ctrl+c` 关闭日志,不会影响后台程序的运行。使用 `ps -ef | grep app.py | grep -v grep` 命令可查看运行于后台的进程,如果想要重新启动程序可以先 `kill` 掉对应的进程。日志关闭后如果想要再次打开只需输入 `tail -f nohup.out`。此外,`scripts` 目录下有一键运行、关闭程序的脚本供使用。
Expand Down

0 comments on commit d0fd784

Please sign in to comment.