- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
root@dev-demo-karl:~# supervisord -v
3.3.1
supervisorctl
时出现以下错误:
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h
root@dev-demo-karl:/srv/www# /usr/bin/supervisorctl
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h
root@dev-demo-karl:/srv/www# cd /etc/
root@dev-demo-karl:/etc# cat supervisor
supervisor/ supervisord/ supervisord.conf
root@dev-demo-karl:/etc# ls supervisord/conf.d
supervisord.conf
root@dev-demo-karl:/etc# ls supervisor/conf.d
supervisord.conf
root@dev-demo-karl:/etc# ls supervisord
conf.d supervisord.conf
root@dev-demo-karl:/etc# ls supervisor
conf.d supervisord.conf
supervisord.conf
文件有以下内容:
root@dev-demo-karl:/etc# cat supervisord.conf
[supervisord]
nodaemon=true
[program:node]
directory=/srv/www
command=npm run demo
autostart=true
autorestart=true
[program:mongod]
command=/usr/bin/mongod --auth --fork --smallfiles --logpath /var/log/mongodb.log
KNOW
supervisord 正在寻找其中之一,因为服务已启动:
root@dev-demo-karl:~# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.8 47624 17744 ? Ss 21:03 0:00 /usr/bin/python /usr/bin/supervisord
root 8 0.1 2.4 1003400 49580 ? Sl 21:03 0:00 npm
root 16 0.6 2.3 295224 48192 ? Sl 21:03 0:03 /usr/bin/mongod --auth --fork --smallfiles --logpath /var/log/mongodb.log
root 40 0.0 0.0 4512 844 ? S 21:03 0:00 sh -c npm run prod
root 41 0.1 2.4 1003412 49584 ? Sl 21:03 0:00 npm
root 52 0.0 0.0 4512 712 ? S 21:03 0:00 sh -c NODE_ENV=production NODE_PATH="$(pwd)" node src/index.js
root 54 0.4 8.1 1068568 166080 ? Sl 21:03 0:02 node src/index.js
root 79 0.0 0.1 18240 3248 ? Ss+ 21:04 0:00 bash
root 238 0.0 0.1 18248 3248 ? Ss 21:06 0:00 bash
root 501 0.0 0.1 34424 2884 ? R+ 21:12 0:00 ps aux
supervisorctl
不工作?
root@dev-demo-karl:~# cat /etc/supervisord.conf
[supervisord]
nodaemon=true
[program:node]
directory=/srv/www
command=npm run demo
autostart=true
autorestart=true
[program:mongod]
command=/usr/bin/mongod --auth --fork --smallfiles --logpath /var/log/mongodb.log
root@dev-demo-karl:~# supervisorctl -c /etc/supervisord.conf
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h
CMD ["/usr/bin/supervisord"]
最佳答案
一、如何启动supervisord:
# Start server
supervisord -c /path/to/supervisor.conf
# Then use client
supervisorctl -c /path/to/supervisor.conf status
[inet_http_server]
port = 127.0.0.1:9001
[supervisorctl]
serverurl = http://127.0.0.1:9001
[program:<your_program_name>]
[unix_http_server]
file=/tmp/supervisor.sock
[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor
[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:<your_program_name>]
...
关于supervisord - supervisorctl 3.3.1 不工作,提示找不到 .conf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43792897/
我在/home/david/conf/supervisor.conf中设置了以下内容: [unix_http_server] file=/home/david/tmp/supervisor.sock
我让 supervisorctl 运行了大约 50 个进程。现在我想在我的网站上获取这些进程的状态。我的想法是在 php exec(“sudo supervisorctl status”) 上使用并将
Logstash无法在supervisord下启动,但可以直接使用命令运行。 Ubuntu 5.4.0-6ubuntu1~16.04.10、logstash-6.5.3、supervisord 3.2
我正在尝试安装 supervisorctl 以用于我的 laravel 队列命令,但出现错误(没有这样的过程)这是我的 supervisord.conf 我已经尝试了所有重新加载、重新读取和重新启动,
supervisorctl tail从哪里获取某个进程的日志信息?我如何获得完整的日志? 最佳答案 来自命令行帮助(supervisorctl help tail): tail [-f] [stdo
当这个命令php artisan queue:restart运行,所有队列工作器都会优雅地重新启动。 但是,如果这些命令 supervisorctl reload或 supervisorctl res
我有这个 bash 脚本与主管一起运行 #!/bin/bash DIR="/home/files" while read file; do IFS=', ' read -r -a array <
我让 supervisord 以用户 stavros 的身份运行一个程序,我想授予同一用户使用 supervisorctl 重新启动它的权限。不幸的是,我只能用 sudo 来做,否则我会在 socke
所以我已经安装了 supervisor,它似乎正在运行。我已将队列工作程序的配置文件放在/etc/supervisor/conf.d/laravel-worker.conf 中 看起来像这样 [pro
我以 root 身份启动主管: sudo supervisord -c/etc/supervisor/supervisord.conf 然后我尝试启动 supervisorctl: (myapp)ap
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
$ sudo supervisorctl status guni:gunicorn FATAL Exited too quickly (proce
root@dev-demo-karl:~# supervisord -v 3.3.1 尝试访问 supervisorctl 时出现以下错误: Error: .ini file does not inc
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 想改进这个问题?将问题更新为 on-topic对于堆栈溢出。 2年前关闭。 Improve this qu
我正在通过 Ansible 为服务器配置 Django Stack 并从 bitbucket 获取应用程序,我正在使用 https://github.com/jcalazan/ansible-djan
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我是一名优秀的程序员,十分优秀!