supervisor Error: File contains no section headers的解决方法
之前一直使用的supervisor配置文件好好的 使用rsync迁移到新的主机后就莫名的出现了下面的错误
supervisor Error: File contains no section headers
后来找资料好久,才发现配置文件被更改了
正常的supervisor配置文件开始应该是下面这样的
1
2
3
4
5
6
7
8
[program:demogolang]
command=/var/run/golang -c /var/demo/demo.conf
startsecs=0
stopwaitsecs=0
autostart=false
autorestart=true
stdout_logfile=/tmp/demon.log
stderr_logfile=/tmp/demon.err
就是因为少了[program:demogolang]
导致了supervisor Error: File contains no section headers
的错误。
💘 相关文章
- supervisor ERROR (spawn error)的解决方法
- Error(128): Key has been revoked trying to mount.cifs的解决方法
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- php Parse error: syntax error, unexpected ';', expecting ',' or ')'的解决方法
- linux stdio.h: No such file or directory的解决方法
- typora 配置picgo-core出现env: node: No such file or directory的解决方法
- nginx: [warn] "ssl_stapling" ignored, not supported error
- mysqldump error 1194的解決方法
- freebsd 系统正确安装Supervisor的方法
- wordpress A TimThumb error has occured的解决方法