yeszao / dnmp

Docker LNMP (Nginx, PHP7/PHP5, MySQL, Redis)
https://www.awaimai.com/2120.html
MIT License
3.96k stars 1.41k forks source link

supervisor中无法使用PHP #512

Open admin953006367 opened 2 years ago

admin953006367 commented 2 years ago

ERROR: Process php: no such file

shunhua commented 2 years ago

作者现在还没完善这个?

xuanyue0522 commented 1 year ago

同问,请问这个如何解决?

mrjie123 commented 1 year ago

同问,请问这个如何解决?

cjango commented 11 months ago

在宿主机中使用supervisor

[program:Laravel-horizon]
process_name=%(program_name)s
command=docker exec php8 php /www/Laravel/artisan horizon # 容器路径
autostart=true
autorestart=true
numprocs=1
user=root
redirect_stderr=true
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=20
stopwaitsecs=3600
stdout_logfile=/root/dnmp/logs/supervisor/larave-horizon.log # 宿主机路径