Linux 后台运行程序

后台不挂断运行程序:

nohup your_command &

同时指定输出日志文件并将错误重定向到标准输出:

nohup your_command > your_out.file 2>&1 &

查看进程

ps -ef | grep "your_command"

杀死进程

kill -9 your_command_pid

特此记录一下

posted @ 2020-07-16 04:29  viewts  阅读(190)  评论(0编辑  收藏  举报