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

113 阅读1分钟

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

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

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

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

或者用screen命令也行

要获取更多Jerry的原创文章,请关注公众号"汪子熙":