今天在给服务器安装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遇到的坑_第1张图片
supervisor遇到的坑_第2张图片

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