supervisor遇到的坑

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了supervisor遇到的坑相关的知识,希望对你有一定的参考价值。

今天在给服务器安装supervisor的时候遇到了一些坑,花了好长时间才跳过去!
首先,supervisor的被监控进程必须是前台运行的,所以nohub和&的程序是不能被监控的 ;不然就会出现如下情况:

2018-10-18 23:29:14,364 WARN received SIGTERM indicating exit request
2018-10-18 23:29:43,331 INFO Included extra file "/home/gaofeng/etc/supervisor/config.d/frps.ini" during parsing
2018-10-18 23:29:43,367 INFO RPC interface ‘supervisor‘ initialized
2018-10-18 23:29:43,367 CRIT Server ‘unix_http_server‘ running without any HTTP authentication checking
2018-10-18 23:29:43,368 INFO daemonizing the supervisord process
2018-10-18 23:29:43,368 INFO supervisord started with pid 125150
2018-10-18 23:29:44,381 INFO spawned: ‘frps‘ with pid 125161
2018-10-18 23:29:44,400 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:45,403 INFO spawned: ‘frps‘ with pid 125168
2018-10-18 23:29:45,416 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:47,426 INFO spawned: ‘frps‘ with pid 125178
2018-10-18 23:29:47,447 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:51,404 INFO spawned: ‘frps‘ with pid 125188
2018-10-18 23:29:51,413 INFO exited: frps (exit status 0; not expected)
2018-10-18 23:29:51,413 INFO gave up: frps entered FATAL state, too many start retries too quickly
2018-10-18 23:45:35,836 WARN received SIGTERM indicating exit request

技术分享图片
技术分享图片

这里的的意思就是启动了进程,但是无法监控状态,一直给你启动,然后就这样了,
你需要做的就是把用前台启动就好了,
于是我把配置文件改成了
技术分享图片
这样就没问题了

以上是关于supervisor遇到的坑的主要内容,如果未能解决你的问题,请参考以下文章

如何用ffmpeg截取视频片段&截取时间不准确的坑

Blender制作多个动画片段时踩的坑

web网站部署时遇到的一些问题

初学python 遇到的坑

python appium server代码调起和关闭遇到的坑

Android emulator中C代码的调试——gdb/gdbservers时遇到的坑