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)的解决方法
- pve error before or during data restore, some or all disks were not completely restored的解决方法
- Error(128): Key has been revoked trying to mount.cifs的解决方法
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- error while loading shared libraries的解决方法
- mac系统Error: The current working directory doesn't exist, cannot proceed.的解决方法
- ERROR 1054 (42S22): Unknown column 'id' in 'field list'的解決方法
- mysql error 1364 Field doesn't have a default values的解決方法
- supervisor 一些常用的命令
- mysqldump error 1194的解決方法