- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
所以我已经安装了 supervisor,它似乎正在运行。我已将队列工作程序的配置文件放在/etc/supervisor/conf.d/laravel-worker.conf 中
看起来像这样
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html queue:work database --sleep=3 --tries=2 --daemon
autostart=true
autorestart=true
numprocs=4
redirect_stderr=true
stdout_logfile=/var/www/html/storage/logs/laravel.log
我的 supervisord.conf 看起来像这样
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0775 ; sockef file mode (default 0700)
chown=root
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
当我尝试启动进程时出现错误 - 错误(生成错误)。
当我查看它显示的日志文件时 -
2017-05-28 22:21:20,697 INFO exited: laravel-worker_01 (exit status 0; not expected)
2017-05-28 22:21:20,702 INFO exited: laravel-worker_00 (exit status 0; not expected)
2017-05-28 22:21:20,704 INFO exited: laravel-worker_02 (exit status 0; not expected)
2017-05-28 22:21:20,706 INFO exited: laravel-worker_03 (exit status 0; not expected)
2017-05-28 22:21:23,711 INFO spawned: 'laravel-worker_00' with pid 16280
2017-05-28 22:21:23,713 INFO spawned: 'laravel-worker_01' with pid 16281
2017-05-28 22:21:23,715 INFO spawned: 'laravel-worker_02' with pid 16282
2017-05-28 22:21:23,719 INFO spawned: 'laravel-worker_03' with pid 16283
2017-05-28 22:21:23,772 INFO exited: laravel-worker_02 (exit status 0; not expected)
2017-05-28 22:21:23,774 INFO gave up: laravel-worker_02 entered FATAL state, too many start retries too quickly
2017-05-28 22:21:23,774 INFO exited: laravel-worker_01 (exit status 0; not expected)
2017-05-28 22:21:23,776 INFO gave up: laravel-worker_01 entered FATAL state, too many start retries too quickly
2017-05-28 22:21:23,776 INFO exited: laravel-worker_03 (exit status 0; not expected)
2017-05-28 22:21:23,777 INFO gave up: laravel-worker_03 entered FATAL state, too many start retries too quickly
2017-05-28 22:21:23,777 INFO exited: laravel-worker_00 (exit status 0; not expected)
2017-05-28 22:21:24,778 INFO gave up: laravel-worker_00 entered FATAL state, too many start retries too quickly
我已验证我的配置文件中的所有文件都存在。我不确定我在我的 laravel-worker.conf 中使用了正确的配置。我搜索了文档和其他 stackoverflow 线程,但找不到解决方案
最佳答案
我通过重启主管得到了解决
sudo service supervisor reload
关于linux - 启动 supervisorctl 在 laravel 队列工作进程上给出错误(生成错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44232616/
我在/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
我是一名优秀的程序员,十分优秀!