nohup 后台运行

If you want to run server in background, you can:

$ nohup /path/to/server &

Note this will redirect all logs generated by program to nohup.out. If you do not want logs to be saved, you can run:

$ nohup /path/to/server > /dev/null 2>&1 &

This will delete all messages.


posted @ 2017-02-23 15:26  陈溜溜  阅读(253)  评论(0编辑  收藏  举报