部署

建议通过Supervisord监管主进程,前提是不能加-d选项并且设置swoole.daemonizefalse

  1. [program:laravel-s-test]
  2. directory=/var/wwww/laravel-s-test
  3. command=/usr/local/bin/php bin/laravels start -i
  4. numprocs=1
  5. autostart=true
  6. autorestart=true
  7. startretries=3
  8. user=www-data
  9. redirect_stderr=true
  10. stdout_logfile=/var/log/supervisor/%(program_name)s.log