zer*_*nes 6 amazon-web-services supervisord amazon-linux
我正在尝试让主管工作以确保我的队列系统始终在运行。
以下是我采取的步骤,我从各种来源拼凑而成:(以 root 或超级用户身份运行)
冉:
# easy_install supervisor
# echo_supervisord_conf > /etc/supervisord.conf
# vi supervisord.conf
Run Code Online (Sandbox Code Playgroud)将以下内容粘贴到文件末尾:
command=/usr/bin/php /path/to/AppName/artisan --env=production --timeout=240 queue:listen
Run Code Online (Sandbox Code Playgroud)冉:
# supervisord -c /etc/supervisord.conf
# supervisorctl
supervisor> status
supervisor>
Run Code Online (Sandbox Code Playgroud)
它不显示任何内容。
冉:
# service supervisord reload
supervisord: unrecognized service
Run Code Online (Sandbox Code Playgroud)小智 5
要让 Supervisord 作为服务运行,您需要一个/etc/init.d/supervisord文件。我使用https://raw.githubusercontent.com/Supervisor/initscripts/master/redhat-init-equeffelec
和 mods 来匹配 easy_install 将二进制文件放在 ( /usr/local/bin/) 处的路径,并找到 pid 并/var/run/登录/var/log/
| 归档时间: |
|
| 查看次数: |
15547 次 |
| 最近记录: |