S
S
Sergey Bard2017-10-03 18:08:49
System administration
Sergey Bard, 2017-10-03 18:08:49

How to install supervisor on the server?

Hello. I’ll immediately apologize for the stupid question), in general I’m studying Laravel, and so there are queues in Laravel, but as I understand it, for their work you need to constantly start their work through a command php artisan queue:workor use a supervisor that in the background will do everything that needs to be done without constant manual launch, reading no, etc. I can’t figure out how to install a supervisor on the server if I rent it and work with the console (i.e. install additional software on the server) I can’t, do I need to create a virtual environment for python and install it via pip? (I want to know how they act in such cases)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny ., 2017-11-12
@serg_small_developer

setup :
example config file for php
https://github.com/JustinCarmony/PHP-Workers-Tutor...
management : (supervisor, supervisord, supervisorctl)
logs whether supervisor is alive reboot status see work log (what errors on startup ) supervisor - will make sure that the program always works, and in case of a crash it will restart, after restarting the server it will also start. crontab - if you need the script to run every hour/day/month, nohup - if you need to run the program in the background so that it works after the terminal/ssh is closed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question