[supervisord]
nodaemon=true
[unix_http_server]
file=/var/run/supervisor.sock ; the path to the socket file
;chmod=0700 ; socket file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; default is no username (open server)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
//上面几个是必须配置,是supervisorctl与supervisord交互使用,不然无法使用supervisorctl对进程操作,下面是服务器配置
[program:xxx]
file=/var/run/supervisor.sock
command=xxx
autorestart=true
startretries=10
priority=999
/etc/supervisord.conf 配置方法
最新推荐文章于 2024-09-23 09:15:30 发布