Linux下怎么守护进程

2013 年 11 月 19 日
 iZr
比如程序在/root/x

用 /root/x start

启动后程序就到 top 里去了,

然后我我想让这个 x 一直运行 ,死掉了在启动.

怎么办?

谢谢
6532 次点击
所在节点    Linux
26 条回复
PoplarDdd
2013 年 11 月 20 日
http://www.qixing318.com/article/use-supervisord-management-process.html
安装supervisord、配置、示例,希望这篇文章能对你有用
TankyWoo
2013 年 11 月 20 日
supervise

supervisord

都可以啊,很多类似的强悍工具
delong
2013 年 11 月 21 日
找个人 守着 :)
retopara
2013 年 11 月 21 日
@I1l +1, upstart可以把软件打包成service,以后直接start/stop/restart/status yourapp就行了
retopara
2013 年 11 月 21 日
@xierch +1
retopara
2013 年 11 月 21 日
@xierch 现在centos也有了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/89811

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX