linux后台运行程序

linux后台运行程序:

nohup python -u main.py > log.file 2>&1 &

查看输出的命令:

tail -f log.file

查看任务

ps -aux|grep chat.js

终止任务

jobs -l

请选择你看完该文章的感受
✿ 阅读数:1,169  分类:文章

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Captcha Code