Skip to content

Commit d0fd784

Browse files
authored
Merge pull request #1680 from V-know/patch-1
Doc: 优化【服务器部署】
2 parents 8045019 + b67d446 commit d0fd784

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ python3 app.py # windows环境下该命令通
200200
使用nohup命令在后台运行程序:
201201

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

0 commit comments

Comments
 (0)