在Ubuntu上以精灵进程daemon process的方式启动一个命令

首先我们使用start-stop-daemon --help来查看这个命令的帮助文档:

在Ubuntu上以精灵进程daemon process的方式启动一个命令

-S的意思是start
-b的意思是后台运行

在Ubuntu上以精灵进程daemon process的方式启动一个命令

-C:不要关闭任何文件描述符:

在Ubuntu上以精灵进程daemon process的方式启动一个命令

在Ubuntu上以精灵进程daemon process的方式启动一个命令

start-stop-daemon -SbCv -x http-server ./koifiles

或者用screen命令也行
在Ubuntu上以精灵进程daemon process的方式启动一个命令

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
在Ubuntu上以精灵进程daemon process的方式启动一个命令