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

73 阅读1分钟

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

clipboard1

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

clipboard2

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

clipboard3

clipboard4

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

或者用screen命令也行
clipboard5

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