deamontools

大小:37.2MB

更新时间:2026-05-10

系统:iPhone/android

版本:v1.2

App Store下载

软件介绍

deamontools是linux下的一款服务器守护进程管理工具,用以监控系统服务,当服务挂掉的时候,deamontools会自动重新启动这个服务。deamontools主要包含了svscan、supervise、svc、svok、svstat等一系列工具。deamontools的安装deamontools的安装非常简单,首先下载deamontools-0.76.tar.gz,然后执行下面的命令:tarxvzfdaemontools-0.76.tar.gzcdadmindaemontools-0.76packageinstall如果安装的时候提示:usrbinld:errno:TLSdefinitioninliblibc.so.6section.tbssmismatchesnon-TLSreferenceinenvdir.o,则编辑srcconf-cc,在gcc后面增加-includeusrincludeerrno.h即可。deamontools的使用deamontools的使用也很简单,假设我们需要守护的进程为usrlocalnginxsbinnginx,那么使用deamontools的方法如下:1、创建服务目录mkdir-pservicenginx2、创建run脚本viservicenginxrun内容如下:!binshexecusrlocalnginxsbinnginx注意:run脚本一定要有可执行权限,chmod+xrun3、启动服务svc-uservicenginx4、停止服务svc-dservicenginx5、查看服务状态svstatservicenginx6、移除服务rm-rfservicenginxsvc-dxservicenginxdeamontools的常用命令svscan:扫描服务目录,启动服务。supervise:监控服务。svc:控制服务。svok:检查服务是否在运行。svstat:查看服务状态。deamontools的注意事项1、run脚本必须可执行。2、run脚本的路径必须是绝对路径。3、run脚本不能以&结尾。4、run脚本不能是后台进程。5、run脚本不能是守护进程。6、run脚本不能调用daemon()函数。7、run脚本不能调用setsid()函数。8、run脚本不能调用fork()函数。9、run脚本不能调用exit()函数。10、run脚本不能调用wait()函数。11、run脚本不能调用sleep()函数。12、run脚本不能调用pause()函数。13、run脚本不能调用alarm()函数。14、run脚本不能调用signal()函数。15、run脚本不能调用sigaction()函数。16、run脚本不能调用sigprocmask()函数。17、run脚本不能调用sigpending()函数。18、run脚本不能调用sigsuspend()函数。19、run脚本不能调用sigwait()函数。20、run脚本不能调用sigwaitinfo()函数。21、run脚本不能调用sigtimedwait()函数。22、run脚本不能调用sigqueue()函数。23、run脚本不能调用sigaltstack()函数。24、run脚本不能调用siginterrupt()函数。25、run脚本不能调用sigreturn()函数。26、run脚本不能调用sigsetjmp()函数。27、run脚本不能调用siglongjmp()函数。28、run脚本不能调用pthread_sigmask()函数。29、run脚本不能调用pthread_kill()函数。30、run脚本不能调用pthread_sigqueue()函数。31、run脚本不能调用raise()函数。32、run脚本不能调用kill()函数。33、run脚本不能调用killpg()函数。34、run脚本不能调用sigsend()函数。35、run脚本不能调用sigsendset()函数。36、run脚本不能调用sigsendset()函数。37、run脚本不能调用sigsendset()函数。38、run脚本不能调用sigsendset()函数。39、run脚本不能调用sigsendset()函数。40、run脚本不能调用sigsendset()函数。41、run脚本不能调用sigsendset()函数。42、run脚本不能调用sigsendset()函数。43、run脚本不能调用sigsendset()函数。44、run脚本不能调用sigsendset()函数。45、run脚本不能调用sigsendset()函数。46、run脚本不能调用sigsendset()函数。47、run脚本不能调用sigsendset()函数。48、run脚本不能调用sigsendset()函数。49、run脚本不能调用sigsendset()函数。50、run脚本不能调用sigsendset()函数。deamontools的优缺点优点:1、简单易用。2、稳定可靠。3、功能强大。4、支持多种服务。5、

更新日志

更新时间2026年05月10日

软件信息

厂商USERJOY Technology Co., Ltd.
语言简体中文
授权免费使用
年龄分级18+
系统要求 需要iOS15.0或更高版本,与iPhone、iPad、iPod touch兼容
需要网络无广告

同类热门

新天上碑 金心银魂 斗笠江湖 崩坏 暴走传奇 黑色行动2 趣闻天下 鑫游捕鱼3D红包版

猜你喜欢

类似软件

热门标签

免费下载 电脑软件

用户评论9人参与,2条评论

评论需审核后才能显示

最新排行

手游排行软件排行热门应用