linux 后台运行服务

nohup yourcommand >myoutfile.log 2>&1 &
eg:
原本
在这里插入图片描述使用nohup 后
nohup redis-server >myoutfile.log 2>&1 &
在这里插入图片描述

posted @ 2021-05-08 17:52  CCCCC099  阅读(63)  评论(0)    收藏  举报