July 19, 2024

How to install and configure supervisor on Centos 7 to run Laravel Queue

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. It is used to control processes related to a project.

In this article, we would explain you how to configure supervisor daemon to run laravel queue. So let start with the installation process:-

Step 1:- Install the easy_install dependencies on your system.

easy_install supervisor

Step 2:- Enter the following command to install the supervisor on your system.

yum install supervisor

Now you have successfully installed supervisor on your centos 7 System.

Step 3:- Edit the supervisor configuration file which is located in the following directory.

vi /etc/supervisord.conf
command=php /path/to/app.com/artisan queue:work 
     command = path of the project queue work.
     stdout_logfile = path of the log directory where supervisor log files is created.

Step 4: To autorun on system bootup, enter the command as follows:-

systemctl enable supervisord

To restart the supervisord service run the following command:-

systemctl restart supervisord

Congrats, now you have successfully configured the supervisor daemon with laravel queue.

Vedant Kumar

Currently I'm working as an Implementation Engineer, Started my career as an System Administrator - Linux. Additionally loves to explore new technologies and research about new open-source software that ease the development cycle.

View all posts by Vedant Kumar →

2 thoughts on “How to install and configure supervisor on Centos 7 to run Laravel Queue

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.


Ad Blocker Detected!

We've noticed that you are using an ad blocker. Advertising helps fund our server cost and keep it truly independent. It helps to build our content creator team. So please disable your ad blocker, and help us to keep providing you with free- great content - for free. Thank you for your support.